grid squares to star circle
✓ Published0🌍 Public
PPatrick Wojda
Last edited Mar 5, 2019
Created on Mar 4, 2019
Nine equal star shapes begin in a three-by-three grid and repeatedly transition into positions evenly spaced around a circle, while their outlines morph between a star and a square path. The animation uses D3 v4’s `transition.attr` to update `transform` and `d` attributes on SVG `use` and `path` elements, with `d3.easeLinear` and `d3.easeExp` controlling motion. The shapes are defined as reusable SVG paths via a `defs` element, and the cycle runs indefinitely using recursive `setTimeout` calls.
AI-generated descriptionBuilt 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>
mit Licensed