PRJ-01 · Interactions
Kinetic Spring Runtime
- Role
- Author & Maintainer
- Footprint
- 2.1 KB gzip
- Budget
- 120 fps · 0.4 ms/tick
- Stack
- TypeScript · WAAPI · Pointer Events
Interruptible RK4 spring solver that hands off gesture velocity cleanly to native Web Animations without React re-renders.
Architecture
Separates gesture capture from DOM mutation via a pooled requestAnimationFrame scheduler and zero-allocation vector math.
Performance
Sustains 120 Hz scroll-linked sheet snapping across 40 concurrent nodes with under 0.4 ms main-thread frame cost.
Interface
Respects prefers-reduced-motion by collapsing damped springs into crisp 120 ms opacity crossfades automatically.