Skip to content

Function: CubicBezierEase() ​

ts
function CubicBezierEase(
   x1, 
   y1, 
   x2, 
   y2, 
   t
): number;

CSS cubic-bezier timing: the curve's y where its x equals t. x(s) is solved for s by Newton steps, falling back to bisection where the slope is flat — no allocation, it runs per curve per tick.

Parameters ​

ParameterType
x1number
y1number
x2number
y2number
tnumber

Returns ​

number

© 2026 PlayAdGentic