Skip to main content

Function: smoothSpeedCurve()

smoothSpeedCurve(minSpeed, maxSpeed): SpeedFunction

Defined in: src/animation/speed/index.ts:300

Smooth speed transition using a sine-based curve. Useful for creating natural-feeling speed variations.

Parameters​

minSpeed​

number

Minimum speed (at t=0.5)

maxSpeed​

number

Maximum speed (at t=0 and t=1)

Returns​

SpeedFunction