fix: 로그인 등 아래 창이 버벅이던 문제 — 해·구름 떨어짐과 둥둥을 다른 요소로 나눠 GPU로 넘기고(둘이 겹쳐 매 프레임 메인 스레드 작업), 낮엔 안 보이는 별 애니메이션 멈춤, 창이 열린 동안 뒤 화면 움직임 정지
This commit is contained in:
1 parent
bfbf6da101
commit
14f24d1ab0
6 files changed
+26
-10
No files matched your search
@@ -199,9 +199,12 @@ function Hero({ hero, today, ranked, all, feedLoad, todayLoad }: HeroProps) {
|
||||
</div>
|
||||
<div className="relative h-[146px]">
|
||||
{CLOUDS.slice(0, CLOUD_N[weather]).map((c) => (
|
||||
<span key={c.cls} className={cx('b-cloud b-fall z-[1]', c.cls)} style={fall(c.d, c.f)} aria-hidden="true" />
|
||||
<span key={c.cls} className={cx('b-fall absolute z-[1]', c.cls)} style={fall(c.d, c.f)} aria-hidden="true">
|
||||
<span className="b-cloud b-bob inset-0" />
|
||||
</span>
|
||||
))}
|
||||
<div className="b-sun b-fall absolute top-2 left-1/2 -ml-16 grid aspect-square w-32 place-items-center rounded-full text-center" style={fall('0s', '5.6s', '8px')}>
|
||||
<div className="b-fall absolute top-2 left-1/2 -ml-16 aspect-square w-32" style={fall('0s', '5.6s')}>
|
||||
<div className="b-sun b-bob relative grid size-full place-items-center rounded-full text-center">
|
||||
{/* 안 보이는 쪽을 덮어 오늘 밤 달 모양으로 */}
|
||||
{moon && (
|
||||
<svg viewBox="-1 -1 2 2" className="pointer-events-none absolute inset-0 size-full" aria-hidden="true">
|
||||
@@ -223,6 +226,7 @@ function Hero({ hero, today, ranked, all, feedLoad, todayLoad }: HeroProps) {
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="relative z-[3] text-center">
|
||||
{top1 ? (
|
||||
|
||||
Reference in new issue
Block a user