Skip to main content
100%

Transition Speed Test

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jan 15, 2012

This example demonstrates the speed of D3’s transition engine by animating a 48×48 grid of small square divs from white to black. Clicking the button triggers a one-second transition on all 2,304 elements simultaneously, changing their background-color and outline-color. The code uses d3.select, d3.range, and transition().duration().style() to apply the animation, responding to a click event on a button. The grid is rendered as HTML divs styled with CSS floats, and the transition is built entirely with D3 v3, avoiding jQuery or CSS-only approaches.

AI-generated description
gpl-3.0 Licensed

Similar vizzes