Respect prefers-reduced-motion when adding motion.
This commit is contained in:
parent
5c62458176
commit
4bd1e30dba
1 changed files with 14 additions and 5 deletions
|
|
@ -151,10 +151,13 @@
|
|||
&__toggle,
|
||||
&__hamburger rect,
|
||||
&__sheet {
|
||||
transition: all 130ms ease-in;
|
||||
// Add some transitions unless user prefer less motion.
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
transition: all 130ms ease-in;
|
||||
|
||||
.js-nav-open & {
|
||||
transition: all 330ms ease-out;
|
||||
.js-nav-open & {
|
||||
transition: all 330ms ease-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue