block by zanarmstrong 647310cb65466a31761f

Stroke Dash Interpolation

Full Screen

By interpolating the stroke-dasharray style property, you can animate a stroke from start to end. This might be used to convey directionality of connected links in a network graphic, such as our graphic of Academy Award nominees. By setting the transition duration proportional to the length of the line and using linear easing, you can further animate the stroke at constant speed.

A related technique is point-along-path interpolation.

forked from mbostock‘s block: Stroke Dash Interpolation

index.html