Skip to content

Commit

Permalink
No spinning React logo if prefers-reduced-motion (#7931)
Browse files Browse the repository at this point in the history
  • Loading branch information
donavon authored and iansu committed Nov 6, 2019
1 parent d46da89 commit 10daea2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cra-template/template/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
}

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
Expand Down

0 comments on commit 10daea2

Please sign in to comment.