Skip to content

Commit

Permalink
Adding media query for reduced motion to turn off animation in that case
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncanma committed Apr 20, 2019
1 parent 15a62e7 commit 966286b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/scss/_logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
border-radius: 1px;
animation: cursor 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
&__cursor {
animation: none;
}
}

}

@keyframes cursor {
Expand Down

0 comments on commit 966286b

Please sign in to comment.