MotionLang

Spring · The feel of a bounce

Momentum惯性

After release the element does not stop at once; it keeps gliding at the release velocity and gradually slows down.

Open this entry in the tool

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

  1. per frame × 0.95
  2. Momentum → 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.

More in this category