Skip to content

About

Minimal reproduction: hyperframes sub-composition slot goes black at GSAP timeline end, ignoring host data-duration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

hyperframes-subcomp-blanks-after-timeline-end

Minimal reproduction for a hyperframes bug: a sub-composition's slot goes black at its internal GSAP timeline's end, ignoring the host element's data-duration.

Reproduce

npx hyperframes render --fps 60 --quality high --output repro.mp4

Sample frames across the 3s output:

for t in 0.5 1.0 1.5 2.0 2.5 2.9; do
  ffmpeg -y -loglevel error -ss $t -i repro.mp4 -frames:v 1 frame-${t}.png
done

frame-0.5.png shows "HOLD ME" mid-entrance. frame-1.0.png through frame-2.9.png are black, even though the host slot's data-duration is 3s. Per the hyperframes skill docs, data-duration takes precedence over GSAP timeline length, so the sub-comp should hold its final state through the full slot.

Files

  • index.html — root composition. One sub-comp host, 3s slot.
  • compositions/sub.html — sub-composition. GSAP timeline runs 0–1s.

Workaround

Add any tween to the sub-comp's timeline whose end falls at t ≥ duration. Even a no-op between identical values works:

tl.to(".sub-text", { opacity: 1, duration: 2.0 }, 1.0);

About

Minimal reproduction: hyperframes sub-composition slot goes black at GSAP timeline end, ignoring host data-duration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages