Skip to main content
100%

Bouncing Balls

✓ Published0🌍 Public
EErik Sundahl
Last edited Nov 20, 2022
Created on Nov 20, 2022
Forked from Hello VizHub

Fifteen circles bounce in a sinusoidal wave across a dark background. Each ball follows a vertical, sine-based path at a fixed horizontal interval, with its vertical position shifting over time to create a flowing, animated pattern. The visualization uses D3.js version 7’s `select`, `range`, `scaleOrdinal`, and `schemePastel2` to generate a pastel color palette for the circles. The animation is driven by a JavaScript `setInterval` timer, updating the circles’ `cy` attributes at roughly 60 frames per second via D3’s `.join()` API.

AI-generated description
MIT Licensed

Similar vizzes