fresh block
✓ Published0🌍 Public
GGerardoFurtado
Last edited Jan 2, 2019
Created on Jan 2, 2019
A single red square animates through a sequence of 180- and 360-degree rotations using SVG transitions. The example demonstrates chained `transition()` calls with `duration` and `delay` to create a two-step spinning effect around a fixed center point. Built with D3.js v1 modules including `d3-transition`, `d3-selection`, and `d3-color`, the code directly manipulates the `transform` attribute on a `<rect>` element. The square starts at coordinates (100,100) and rotates in place without moving its position, showcasing how D3 handles attribute tweening for transform strings. No data source is used; the visualization is purely a geometric animation.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed