fix(scene): remove exit-gate flashes and sub-3 Hz-unsafe flickers
This commit is contained in:
@@ -179,7 +179,7 @@ body::after {
|
||||
}
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.portfolio-section[data-current]::before {
|
||||
animation: exit-strike 1.1s steps(1, end) both;
|
||||
animation: exit-strike 1.1s ease-out both;
|
||||
}
|
||||
.portfolio-section[data-current] {
|
||||
animation: exit-panel-light 1.6s cubic-bezier(0.2, 0.75, 0.2, 1) both;
|
||||
@@ -192,14 +192,13 @@ body::after {
|
||||
}
|
||||
}
|
||||
}
|
||||
/* A neon tube catching: two short flickers, then steady. */
|
||||
/* A neon tube warming up: one soft swell, then steady. Below 3 Hz by design
|
||||
(photosensitivity): a single rise over the whole duration. */
|
||||
@keyframes exit-strike {
|
||||
0% { opacity: 0.25; }
|
||||
12% { opacity: 1; }
|
||||
18% { opacity: 0.35; }
|
||||
30% { opacity: 1; }
|
||||
36% { opacity: 0.55; }
|
||||
48%, 100% { opacity: 1; }
|
||||
45% { opacity: 0.85; }
|
||||
60% { opacity: 0.7; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
@keyframes exit-panel-light {
|
||||
0% { border-top-color: color-mix(in srgb, var(--chapter-accent, var(--accent)) 95%, transparent); }
|
||||
|
||||
Reference in New Issue
Block a user