Skip to content

Commit

Permalink
Remove logo spin for prefers-reduced-motion (#9128)
Browse files Browse the repository at this point in the history
Spinning is one of the triggers mentioned on this page:
https://webkit.org/blog/7551/responsive-design-for-motion/

Thanks to @fivetanley for mentioning that this exists.
  • Loading branch information
backspace authored Oct 20, 2020
1 parent f14c898 commit 7c7b113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/app/styles/components/loading-spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ $darker-side: darken($lighter-side, 15%);
animation: cube-spin $duration forwards infinite;
}

@media (prefers-reduced-motion) {
.cube {
animation-iteration-count: 0;
}
}

&.paused {
.cube,
.side-4,
Expand Down

0 comments on commit 7c7b113

Please sign in to comment.