From 6fb0b581c14ef982e1b57a263c1e62664a1a0bea Mon Sep 17 00:00:00 2001 From: Simon Klee Date: Wed, 15 Jul 2026 12:30:29 +0200 Subject: [PATCH] fix(react): correct useTimeline autoplay condition (#1268) Closes #1243 Supersedes #1244 --- packages/react/src/hooks/use-timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/hooks/use-timeline.ts b/packages/react/src/hooks/use-timeline.ts index 10c5d04b0..97a1ecdfd 100644 --- a/packages/react/src/hooks/use-timeline.ts +++ b/packages/react/src/hooks/use-timeline.ts @@ -5,7 +5,7 @@ export const useTimeline = (options: TimelineOptions = {}) => { const timeline = new Timeline(options) useEffect(() => { - if (!options.autoplay) { + if (options.autoplay !== false) { timeline.play() }