Skip to content

remotion-to-hyperframes: Easing.cubic is mapped to power3 (quartic); cubic is power2 #5538

Closed

Description

@ANVEAI

Skill: skills/remotion-to-hyperframes/references/timing.md

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.

Activity

  1. added
    documentation
    triage/ready
    difficulty/easy
    help wanted
    on Oct 13, 2026
  2. jrusso1020 commented on Oct 13, 2026

    @jrusso1020
    Collaborator

    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.

  3. miguel-heygen commented on Oct 24, 2026

    @miguel-heygen
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/easydocumentationhelp wantedtriage/ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions