Skip to main content
100%

Animated Arcs

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

Four colored arc segments rotate continuously around a central point, changing their start and end angles to new random positions every few seconds. The animation uses D3 v4’s `d3.interval` to trigger periodic updates, and each transition relies on `transition.attrTween` with a custom `arcTween` function that interpolates between angle values using `d3.interpolate`. The SVG paths are generated by a `d3.arc()` generator, with each arc assigned a fixed inner and outer radius, forming concentric rings. The data is procedurally generated JavaScript, with random start angles and arc lengths derived from a random score.

AI-generated description

This little animation is used within the overview sneak-peek animation of the Stitch Fix Algorithms Tour. See Mike Bostock's heavily-commented Arc Tween example for an explanation of arc tweens in general. This animation is made only slightly more complex by the use of four arcs and by varying both the start and the end points.

forked from <a href='http://bl.ocks.org/bricof/'>bricof</a>'s block: <a href='http://bl.ocks.org/bricof/ebb8a73a41ca37955ab452bf99f68a76'>Animated Arcs</a>

Similar vizzes