Skip to main content
100%

square to star

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

A yellow star-shaped SVG path morphs into a square, then back, in a continuous loop. The animation uses D3 v4 transitions with an exponential ease, toggling the path's `d` attribute between two predefined coordinate strings via `transition.attr`. Star and square data are hardcoded as SVG path strings, and the loop is driven by recursive `setTimeout` calls alternating between shapes every 1.5 seconds.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes