Rotating cube with inertia

This demo uses CSS transformations and transitions only, no per-frame calculations or easing equations whatsoever. Drag speed is calculated via a requestAnimationFrame callback, and inertia is then applied as a transition over 1 sec.

When picked up during inertia, the transition is stopped by applying the computed transform value, and removing the transition property.