Skip to main content

Module easing

Module easing 

Source
Expand description

Easing helpers for deterministic motion.

Fret’s UI motion is driven by a monotonic tick/frame clock (ADR 0034). shadcn/ui and Radix often express easing in CSS (e.g. ease-[cubic-bezier(0.22,1,0.36,1)]). This module provides small, reusable easing math so motion policies can match those outcomes without DOM/CSS.

Structs§

CubicBezier
A CSS-style cubic-bezier easing curve.

Constants§

EASE
EASE_IN
EASE_IN_OUT
EASE_OUT
SHADCN_EASE
shadcn/ui v4 commonly uses ease-[cubic-bezier(0.22,1,0.36,1)] for overlay-like transitions.

Functions§

linear
smoothstep