Function: steps()
steps(
n,position):RateFunction
Defined in: src/rate-functions/customEase.ts:131
Create a CSS steps() timing function with n steps.
- 'end' (default) holds then jumps at the end of each interval.
- 'start' jumps at the start of each interval.
Both start at 0 at t = 0 and reach 1 at t = 1.
Parameters
n
number
position
StepPosition = 'end'
Returns
Example
const quantized = steps(4);
quantized(0); // 0
quantized(1); // 1