fix(react): correct useTimeline autoplay condition (#1268)

Closes #1243

Supersedes #1244
This commit is contained in:
Simon Klee
2026-07-15 12:30:29 +02:00
committed by GitHub
parent 932bcf6ed3
commit 6fb0b581c1
+1 -1
View File
@@ -5,7 +5,7 @@ export const useTimeline = (options: TimelineOptions = {}) => {
const timeline = new Timeline(options)
useEffect(() => {
if (!options.autoplay) {
if (options.autoplay !== false) {
timeline.play()
}