Skip to content

Commit

Permalink
support prefers-reduced-motion
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Uhlmann committed Mar 18, 2021
1 parent fac1a7d commit 250fa5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/assets/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
@import '~bulma/bulma';
@import '~leaflet/dist/leaflet.css';
@import '~leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css'; // Re-uses

// "disable" animations for people that wish this
@media screen and (prefers-reduced-motion: reduce) {
* {
/* Very short durations means JavaScript that relies on events still works */
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
}
}

0 comments on commit 250fa5d

Please sign in to comment.