feat(reduce-motion): remove view-transition#252
Conversation
175c69a to
54bab3f
Compare
|
Seems fair. I don't think the original premise of these is correct. But I also think that is beyond the scope of this change. It's been 4 years since anyone published this package. |
|
Taking the opportunity of this PR to suggest another change that might also inspire this one: the current I've created a pen to demo this back in the days. If you want to keep a hard reset, this is the minimal code to avoid breaking JS code relying on these event: *,
::before,
::after {
@media (--reduced-motion) {
transition: .001s !important;
animation: .001s !important;
}
}Back to view transitions: I don’t know how the :root::view-transition-old(*),
:root::view-transition-new(*),
:root::view-transition-group(*),
:root::view-transition-image-pair(*) {
@media (--reduced-motion) {
animation: .001s !important;
}
} |
The new @view-transition API is supported by most mayor browsers and allows for page transition animations. Disabled these on prefers-reduced-motion.