We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2e937 commit 26a0628Copy full SHA for 26a0628
1 file changed
src/App.tsx
@@ -630,10 +630,12 @@ function App() {
630
return;
631
}
632
633
- el.style.transition = "opacity 900ms ease-out, transform 900ms ease-out";
+ if (!prefersReducedMotion) {
634
+ el.style.transition = "opacity 900ms ease-out, transform 900ms ease-out";
635
+ }
636
el.style.opacity = "1";
637
el.style.transform = "translate3d(0, 0, 0)";
- }, [contentReady]);
638
+ }, [contentReady, prefersReducedMotion]);
639
640
useLayoutEffect(() => {
641
const scheduleSync = () => {
0 commit comments