Skip to content

Commit 10daea2

Browse files
donavoniansu
authored andcommitted
No spinning React logo if prefers-reduced-motion (#7931)
1 parent d46da89 commit 10daea2

File tree

1 file changed

+6
-1
lines changed
  • packages/cra-template/template/src

1 file changed

+6
-1
lines changed

packages/cra-template/template/src/App.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
}
44

55
.App-logo {
6-
animation: App-logo-spin infinite 20s linear;
76
height: 40vmin;
87
pointer-events: none;
98
}
109

10+
@media (prefers-reduced-motion: no-preference) {
11+
.App-logo {
12+
animation: App-logo-spin infinite 20s linear;
13+
}
14+
}
15+
1116
.App-header {
1217
background-color: #282c34;
1318
min-height: 100vh;

0 commit comments

Comments
 (0)