Skip to main content
100%

Rainbow spinner

✓ Published0🌍 Public
TThanaporn-sk
Last edited May 6, 2017
Created on May 6, 2017

A colorful rainbow spinner animates in an endless looping arc, rendered as a thick ring of 181 SVG path segments, each filled with a distinct hue from the d3.interpolateRainbow scale. The entire ring rotates continuously via a d3.timer, while a clip-path stretches and contracts the visible arc using transition.attrTween to interpolate the starting and ending angles. This example is built with D3 v4 and SVG, with the rainbow gradient encoded directly into each path’s fill and stroke.

AI-generated description

An Android-style loading spinner with a touch of rainbow.

Canvas would probably be a better idea.

forked from <a href='http://bl.ocks.org/veltman/'>veltman</a>'s block: <a href='http://bl.ocks.org/veltman/5bc85fa785c151be8fe54970bba70ca6'>Rainbow spinner</a>

mit Licensed

Similar vizzes