mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
c7e6e5820e
hyperframesAnime.register() primes each timeline by seeking to its end and back to 0. morph-text drives its word swap from an onUpdate proxy tween with manual DOM writes, so the mid-word text painted by the priming seek has nothing for anime.js to restore on the return seek and the wrong headline stuck at t=0 (baseline shows 'Do more with less.', port showed a later word). Re-assert applyMorph(0) after registration, and normalize the modulo in applyMorph so a float-rounding hair-below-zero T from the return seek cannot floor to the last word. Applied to both demo.html and the distributable morph-text.html (same pattern in both twins). Verified by frame comparison against the pinned GSAP baseline at t=0, 10.03, 10.5 and 12.0: t=0 now matches; the t=10-14.9s soft cluster is blur-morph antialiasing jitter with identical content.