mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
A timeline fromTo() renders with GSAP's default immediateRender: false.
When its position is after the timeline start and the target's authored
state is visible, the element sits fully rendered from t=0, then jumps
to the from-vars when the tween begins — a visible flash on every
playback and cold seek. In practice this breaks typewriter reveals,
staggered line entrances, and any 'hidden until its beat' element.
New gsap_fromto_flash_before_start rule fires when a fromTo targets a
non-pre-hidden element at a position past the timeline start with
state-changing from-vars. Exemptions:
- authored hidden state (CSS opacity:0, standalone gsap.set, or a
timeline set-to-hidden at the timeline start)
- identity from-vars (e.g. tl.fromTo(el, { x: 0 }, ...)) — no jump
- immediateRender: true — from-vars hold from load
- tweens at the timeline start (zero flash window)