Fork of Sine Wave Circles
✓ Published0🌍 Public
A row of 30 circles animates vertically in a sine wave pattern across an SVG canvas. The animation continuously updates each circle’s y-coordinate using a time-based sine function, producing a smooth, undulating wave effect. The example uses D3 v7’s `timer` and `range` methods along with the JavaScript `Math.sin` function. Circles are appended via `selectAll`, and their positions are calculated based on the viewport width and height, with a frequency parameter controlling the wave’s oscillation.
AI-generated descriptionA D3 version of the Math Sine Wave P5.js example.
Ported to ES6 from an older version: bl.ocks.org: Sine Wave Circles with blockbuilder.org.
MIT Licensed