Skip to main content
100%

grid squares to star circle spin

✓ Published0🌍 Public
PPatrick Wojda
Last edited Mar 22, 2019
Created on Mar 5, 2019

Nine blue star shapes begin as a 3x3 grid of squares, then morph into stars and move into a circular arrangement. The `d3` v4 library drives the animation, using SVG `use` elements, `transition.attr` for position changes, and a recursive `transition` callback to continuously rotate the entire circle. Each star spins around the circle’s center via trigonometric calculations with `Math.cos` and `Math.sin`, while the initial shape morph uses `d3.selectAll().transition()` with an ease function. The rendering uses SVG paths and elements, with no external data source.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/GitNoise/'>GitNoise</a>'s block: <a href='http://bl.ocks.org/GitNoise/69897de1f517f086fa031823e80dbb45'>square to star</a>

forked from <a href='http://bl.ocks.org/GitNoise/'>GitNoise</a>'s block: <a href='http://bl.ocks.org/GitNoise/5309f6a56e23059a3a79185a7b78b7a2'>grid squares to star circle</a>

mit Licensed

Similar vizzes