Only target needed elements for transitioning, more fail-proof reduced motion setting
This commit is contained in:
@ -38,10 +38,12 @@
|
||||
--transition: 0.2s;
|
||||
|
||||
@media (prefers-reduced-motion) {
|
||||
// VARIABLES
|
||||
--transition-long: 0;
|
||||
--transition-longer: 0;
|
||||
--transition: 0;
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
Reference in New Issue
Block a user