Motion
useSpringValue
Interruptible spring physics in three forms: a reactive value, an imperative spring that writes each frame without re-rendering, and the pure step function behind both. Use it for motion that can change target partway.
vael-ui's spring engine: the physics behind Sortable, Tree and DataTable reordering, and every sliding indicator set to a spring. A spring has no duration. You give it a target, and it moves there from where it is, at the speed it already has. So every animation is interruptible: call set() mid-flight and the value turns toward the new target with no jump. One shared requestAnimationFrame loop runs every moving spring and stops once they all rest.
Install
import { useSpringValue, createSpring, stepSpring } from 'vael-ui/motion'