Skip to content

Easing

type Easing =
    | Linear
    | CubicBezier of x1: float * y1: float * x2: float * y2: float
    | Spring of SpringParameters
    | SpringPreset of name: string
AssemblyPartas.Nacara.Plugins.Motion

The easing of a hover.

Cases

Linear

No easing.

CubicBezier of x1: float * y1: float * x2: float * y2: float

A cubic bezier through the two control points.

Spring of SpringParameters

A spring with explicit parameters.

SpringPreset of name: string

One of Figma's named springs: GENTLE, QUICK, BOUNCY or SLOW.

Properties

member IsCubicBezier: bool
member IsLinear: bool
member IsSpring: bool
member IsSpringPreset: bool