Spring · The feel of a bounce
Momentum惯性
- glide
- continuous
- physical
After release the element does not stop at once; it keeps gliding at the release velocity and gradually slows down.
When to use it
Use it for carousels, draggable canvases and scrolling lists; when it must land exactly on a point, use snapping instead.
Parameters
initial velocity = release velocity · per frame × 0.95 · stops below 0.1px/ms
Recipe
per frame × 0.95Momentum → initial velocity = release velocity · stops below 0.1px/ms
One sentence for your AI
Add momentum to this carousel: keep gliding at the release velocity, decaying by 0.95 per frame, stopping under 0.1px/ms and snapping to the nearest page.