example-gsap
Installation
SKILL.md
GSAP Integration Patterns
To use GSAP with Helios, you must drive the GSAP Timeline instance using the Helios frame state. This allows GSAP animations to be scrubbed, paused, and rendered frame-by-frame.
Quick Start
The "Paused Timeline" Pattern
- Create a GSAP Timeline with
paused: true. - Subscribe to Helios updates.
- Inside the subscription, convert the Helios frame to seconds.
- Call
timeline.seek(seconds)to synchronize.
<script type="module">
import { Helios } from '@helios-project/core';
import { gsap } from 'gsap';