Skip to content

interpolate

interpolate(from, to, t, easing?): number

Defined in: src/anim/easing.ts:77

Eased interpolation between two numbers. t is clamped to [0,1] first; the named easing shapes the path. back/elastic may overshoot the endpoints mid-flight by design but always resolve exactly to to at t = 1.

number

number

number

Easing

number