fix: 로그인 등 아래 창이 버벅이던 문제 — 해·구름 떨어짐과 둥둥을 다른 요소로 나눠 GPU로 넘기고(둘이 겹쳐 매 프레임 메인 스레드 작업), 낮엔 안 보이는 별 애니메이션 멈춤, 창이 열린 동안 뒤 화면 움직임 정지

This commit is contained in:
minaChoi committed 2026-10-21 16:16:26 +09:00
1 parent bfbf6da101
commit 14f24d1ab0
6 files changed
+26 -10

No files matched your search

+15 -5
View File
@@ -22,11 +22,12 @@
outline-offset: 2px;
}
/* 하늘에서 떨어진 뒤 둥둥 */
/* 하늘에서 떨어진 뒤(.b-fall) 둥둥(.b-bob, 그 안쪽 요소). 한 요소에 transform 애니메이션 둘이 겹치면 GPU로 못 넘겨 매 프레임 메인 스레드가 일한다 */
.b-fall {
animation:
b-drop 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) var(--d, 0s) both,
b-float var(--f, 4.8s) ease-in-out calc(var(--d, 0s) + 1.05s) infinite;
animation: b-drop 1.05s cubic-bezier(0.22, 0.9, 0.3, 1) var(--d, 0s) backwards;
}
.b-bob {
animation: b-float var(--f, 4.8s) ease-in-out calc(var(--d, 0s) + 1.05s) infinite;
}
@keyframes b-drop {
0% {
@@ -53,7 +54,7 @@
transform: translateY(0);
}
50% {
transform: translateY(calc(var(--amp, 9px) * -1)) rotate(var(--tilt, 1.2deg));
transform: translateY(-9px) rotate(1.2deg);
}
}
@@ -509,6 +510,9 @@
border-radius: 50%;
background: #fff;
box-shadow: 0 0 6px rgb(255 255 255 / 0.8);
}
/* 별은 밤에만 보이니 반짝임·별똥별도 밤에만 돌린다 (낮에 안 보이는 채로 돌면 매 프레임 일을 한다) */
.b-skybg[data-t='night'] .b-skystars i {
animation: b-twinkle var(--tw, 5s) ease-in-out infinite;
animation-delay: var(--dl, 0s);
}
@@ -523,8 +527,14 @@
border-radius: 2px;
background: linear-gradient(90deg, rgb(255 255 255 / 0), #fff);
opacity: 0;
}
:is(.b-skybg, .b-hero)[data-t='night'] .b-shoot {
animation: b-shoot var(--dur, 8s) ease-in var(--dl, 0s) infinite;
}
/* 아래 창이 열려 있는 동안 뒤 화면 움직임은 멈춘다 (창이 버벅이지 않게) */
html.b-sheet-open .b-app :is(.b-fall, .b-bob, .b-blob, .b-skystars i, .b-shoot, .b-stars i) {
animation-play-state: paused !important;
}
@keyframes b-shoot {
0%, 86% { opacity: 0; transform: rotate(-24deg) translateX(0); }
89% { opacity: 1; }