mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
The prior implicit-transform-from fix corrected EVERY implicit-from tween matching a decomposed transform property, not just the first one on a given target. Confirmed via a real render + PSNR A/B test against the commit before that fix: registry/examples/product-promo's nested scene1-logo-intro.html animates each Figma logo piece with two tweens on the same target+property (an instant duration:0 jump off-screen, then an implicit-from "converge to center" tween) -- the second tween correctly inherits its "from" from the first tween's just-set value inside anime.js, but the prior fix overwrote it with the element's true CSS/page-load identity value instead, making the piece appear already-assembled at the center from frame 0. This regressed product-promo's PSNR from ~50.5dB to ~47.0dB. Only apply the CSS-cascade correction to the tween with the smallest `_absoluteStartTime` for each distinct (target, property) pair; every later implicit-from tween on that same pair is left untouched, since anime.js already chains it correctly from the preceding tween. Verified: the product-promo regression is resolved (51.2dB, back above baseline) while flowchart/kinetic-type retain their original fix's improvement.