You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
remotion-to-hyperframes: Easing.cubic is mapped to power3 (quartic); cubic is power2 #5538
difficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.documentationImprovements or additions to documentationhelp wantedReady, available work with maintainer review support; any difficulty.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.
The easing table maps Remotion's cubic easing to GSAP power3. GSAP's powerN eases have exponent N+1:
GSAP ease
polynomial
power1
quad
power2
cubic
power3
quart
power4
quint
So a ported Easing.out(Easing.cubic) runs as a quartic ease-out.
Affected lines (current main):
L92:Easing.out(Easing.cubic) → ease: "power3.out". It should be power2.out.
L93:Easing.inOut(Easing.cubic) → ease: "power3.inOut". It should be power2.inOut.
L94:Easing.out(Easing.poly(N)) → power<N>.out. It should be power<N-1>.out (poly 2 = quad → power1, 3 = cubic → power2, 4 = quart → power3, 5 = quint → power4).
L135 / L144: the worked example uses power3.out and says it "matches 1 - (1-t)^3 exactly". That curve is power2.out.
Check with GSAP 3.15.0 at t = 0.5:
ease
value at t = 0.5
power2.out
0.875000
power3.out
0.937500
cubic 1 - (1-t)^3
0.875000
quart 1 - (1-t)^4
0.937500
Impact we saw: a counter tween ported with power3.out led its cubic original by up to about 0.27 s over a 2.6 s tween. An SSIM check per frame mostly doesn't catch it, because the error is timing: every frame looks plausible, it is just early.
Suggested fix:
Change the two cubic rows and the worked example to power2.
Change the poly(N) row to power<N-1>.
(L72, overshootClamping → power3.out, is marked "not validated" and may be a deliberate approximation, so I've left it out.)
We found this while testing motion libraries for frame-exact rendering. HyperFrames itself was frame-exact in every test we ran. Thanks for building it.
Confirmed, GSAP's powerN is degree N+1, so cubic should map to power2. Same mistake is in the skill's tier-3 test corpus and the power<N> row in api-map.md, so a fix should cover those too.
Thanks for the precise line references and the GSAP values, they check out: powerN has degree N+1, so cubic is power2.
All of the cited lines are still wrong on current main (timing.md L92-94 and the worked example at L135/L144). #5561 fixes the tables, the counter example and the tier-3 fixture. It's approved and only needs a rebase onto main before it can merge.
difficulty/easyLocalized change with a known approach, limited risk, and straightforward verification.documentationImprovements or additions to documentationhelp wantedReady, available work with maintainer review support; any difficulty.triage/readyAccepted scope, current evidence, acceptance criteria, and validation path are recorded.
Activity
jrusso1020 commentedon Oct 13, 2026
Confirmed, GSAP's
powerNis degree N+1, so cubic should map topower2. Same mistake is in the skill's tier-3 test corpus and thepower<N>row in api-map.md, so a fix should cover those too.miguel-heygen commentedon Oct 24, 2026
Thanks for the precise line references and the GSAP values, they check out:
powerNhas degree N+1, so cubic ispower2.All of the cited lines are still wrong on current
main(timing.mdL92-94 and the worked example at L135/L144). #5561 fixes the tables, the counter example and the tier-3 fixture. It's approved and only needs a rebase ontomainbefore it can merge.