Skip to content

Animation

Veyrajs deliberately ships no tween or animation engine. The scene graph is mutable, so you animate the same way the browser does: mutate node properties inside a requestAnimationFrame loop and call stage.requestRender(). The engine coalesces the redraw to one frame.

Each body’s position is recomputed every frame from an orbit angle:

A tiny spring integrator makes the dot chase the pointer: