Skip to content

Commit 26a0628

Browse files
committed
a11y fix
1 parent 9b2e937 commit 26a0628

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,10 +630,12 @@ function App() {
630630
return;
631631
}
632632

633-
el.style.transition = "opacity 900ms ease-out, transform 900ms ease-out";
633+
if (!prefersReducedMotion) {
634+
el.style.transition = "opacity 900ms ease-out, transform 900ms ease-out";
635+
}
634636
el.style.opacity = "1";
635637
el.style.transform = "translate3d(0, 0, 0)";
636-
}, [contentReady]);
638+
}, [contentReady, prefersReducedMotion]);
637639

638640
useLayoutEffect(() => {
639641
const scheduleSync = () => {

0 commit comments

Comments
 (0)