Oh my gosh
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 descriptionI 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.