mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
The GSAP AST parser now recognizes the keyframes property on tweens
instead of dropping it. Supports all three GSAP v3 keyframe formats:
- Percentage objects: { "0%": { x: 0 }, "50%": { x: 100 }, "100%": { x: 200 } }
- Object arrays: [{ x: 0, duration: 0.5 }, { x: 100, duration: 1 }]
- Simple arrays: { x: [0, 100, 200], easeEach: "power2.inOut" }
Each format is normalized into GsapPercentageKeyframe[] with percentage
positions, per-keyframe properties, and optional ease. Three-level easing
(tween ease, easeEach, per-keyframe ease) is preserved. Keyframes tweens
correctly produce empty top-level properties since all animatable values
live inside the keyframes structure.