Skip to main content
100%

OMG Particles!

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jul 3, 2011

A mouseover-driven particle burst fills the screen with expanding, fading rings. Each pointer movement inserts a new circle into the SVG, which grows over two seconds and fades away, creating a trail of colorful, overlapping ripples. The example uses D3.js v3, with a transition on the circle’s `r` and `stroke-opacity` attributes, and generates hues via `d3.hsl`. The background is a static SVG rectangle that captures pointer events.

AI-generated description

Mouseover to make particles. Built with D3. I’ve written a slight newer version that creates particles continuously via d3.timer rather than on mouseover. So, check that out.

gpl-3.0 Licensed

Similar vizzes