Skip to main content
100%

Oh my gosh

✓ Published0🌍 Public
AAlexDaGr8
Last edited Jan 24, 2018
Created on Jan 23, 2018

This example shows an interactive particle trail that follows the mouse, leaving a fading, expanding ring and a connecting line on a black background. As the pointer moves, the code appends circles that grow, shrink, and change color, while a monotone line links the latest two points. It uses D3 v4 with SVG elements, `d3.mouse` for coordinates, `d3.interpolateSpectral` for hue cycling, and chained `transition` calls with easing to animate each particle. The trail auto-removes old marks after delays, and the color continuously shifts between spectral extremes.

AI-generated description

I took the <a href="https://bl.ocks.org/mbostock/9539958">OMG Particles II</a> from <a href="https://bl.ocks.org/mbostock>Mike Bostock</a> and recreated it myself with some extra things added in.

Similar vizzes