Skip to content

Commit cbd4016

Browse files
authored
feat(Calendar): respects prefers-reduced-motion: reduce (#13)
1 parent b48f512 commit cbd4016

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Calendar/Calendar.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ $block: '.#{variables.$ns}calendar';
109109
}
110110
}
111111

112+
@media screen and (prefers-reduced-motion: reduce), (update: slow) {
113+
&[class] {
114+
animation-duration: 0.001ms;
115+
}
116+
}
117+
112118
@keyframes calendar-forward {
113119
from {
114120
transform: translateX(0);

0 commit comments

Comments
 (0)