Different type of animation for bars
✓ Published0🌍 Public
AAlexDaGr8
Last edited May 16, 2018
Created on May 15, 2018
Six bars drawn as a closed line path animate between two different silhouettes: first as simple vertical bars, then into a tapered, flag-like shape, and back. The animation uses D3 v5’s `transition` with an `easeElastic` timing function and a monotone `d3.curveMonotoneX` interpolation. The data is a small inline array, and the path’s `d` attribute is updated twice to morph the shape. The SVG is rendered with axes and the line is filled in pink with a steelblue stroke.
AI-generated descriptionI was trying to think of different ways of animating and this was one of my first thoughts. Used a line to create the bars instead of rects.