fix: prevent scroll reveal elements from flashing
This commit is contained in:
@@ -210,6 +210,13 @@ button:active:not(:disabled) {
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
/* Keep pending reveals hidden only after the controller is ready. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
html[data-motion-ready='true'] :is([data-reveal], [data-footer-reveal]):not([data-visible='true']) {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
|
||||
Reference in New Issue
Block a user