Quantises progress into count equal jumps, as CSS steps(count, end) does.
Floors rather than rounds, which is what holds each step for its full
width: a value a hair below a boundary belongs to the step it is still
inside. The vectors sample one part in a billion either side of every
boundary for exactly this — floor and round agree everywhere else.
The final instant is pinned to 1 so an animation lands on its end value
rather than a step short of it.
Quantises progress into
countequal jumps, as CSSsteps(count, end)does.Floors rather than rounds, which is what holds each step for its full width: a value a hair below a boundary belongs to the step it is still inside. The vectors sample one part in a billion either side of every boundary for exactly this — floor and round agree everywhere else.
The final instant is pinned to
1so an animation lands on its end value rather than a step short of it.