Skip to content

Commit

Permalink
feat(spinners): slower animation for prefers-reduced-motion
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 13, 2020
1 parent f7f8630 commit 2b4690e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scss/_spinners.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
to { transform: rotate(360deg); }
}

.spinner-border {
.spiner-border {
display: inline-block;
width: $spinner-width;
height: $spinner-height;
Expand All @@ -30,6 +30,14 @@
height: $spinner-height-lg;
border-width: $spinner-border-width-lg;
}

@if $enable-reduced-motion {
@media (prefers-reduced-motion: reduce) {
.spinner-border {
animation-duration: $spinner-animation-speed * 2;
}
}
}
// End mod

// Boosted mod: no .spinner-grow

0 comments on commit 2b4690e

Please sign in to comment.