Installation
Install GSAP alongside Helios:Basic integration
The key to integrating GSAP with Helios is to:- Create a GSAP timeline with
paused: true - Subscribe to Helios updates
- Convert frame count to seconds
- Seek the GSAP timeline to the exact time
Integration pattern
Timeline control
GSAP timelines must be created withpaused: true to prevent automatic playback:
Frame to time conversion
Convert Helios frame numbers to seconds for GSAP:Using GSAP easing
GSAP provides powerful easing functions that work seamlessly:power1.inOut,power2.out,power3.inelastic.out(1, 0.3)bounce.outback.inOut(1.7)
Why this works
By pausing the GSAP timeline and manually seeking to specific time positions, Helios can:- Ensure deterministic frame-by-frame rendering
- Enable scrubbing through the animation
- Support export to video formats
- Maintain synchronization across multiple animation systems