murmuration: a nuée, a flock that draws shapes
Nuée is French for a flock. Type to write, drag to draw.
One flock for the whole page
With frame: 'page', a single canvas sits behind the content and the birds live in document coordinates. They perch on whatever a section offers them: here, a wire.
createMurmuration(canvas, { frame: 'page' })
A scene per section
createScenes picks the section on screen and lands the flock on its shape. Scroll back up: your word is still waiting.
createScenes(m, [{ name, active, pose }])
Shy of the pointer
With shy: true, perched birds take off when the pointer comes close, circle above their place, then land on it again. Try it on the ring.
m.perch(points, { shy: true })