Skip to content

keyframes: Parse easing #7709

@JonnyBurger

Description

@JonnyBurger

In PR #7703 and #7699 we recently iterated on keyframe parsing and keyframe updating.

Now, I want to take the next step: Properly parsing easings and clamping.

  • When parsing, we should also return the clamping that applies. If not specified, assume the default of interpolate()
  • Also parse Easing. Right now, we only support 2 types of easing: Easing.bezier. In that case I want [number, number, number, number]. And Easing.linear or no easing at all, which also defaults to linear. If it is a different type of easing, we don't support keyframes at all and bail out to "computed"!

Also keep in mind that easings can take multiple arguments, so this parsing should also return n - 1 items, where n is the amount of keyframes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions