GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

09Diverging Bars Split Up and Down From a Zero Line That Moves With the Data

It finds the baseline height from where zero sits in the axis range and, when data changes, moves the axis ends by BASELINE_LERP per step so the baseline glides with them; while a bar's value is within ±ZERO_CROSS_FADE of zero it blends the gain and loss colors so the color shifts smoothly as the sign flips, with DIVERGE_PAD_PCT padding above and below.

Best forA summary card showing change from last month

BASELINE_LERPZERO_CROSS_FADEDIVERGE_PAD_PCT
Diverging Bars Split Up and Down From a Zero Line That Moves With the Data
Open in a new tab

09 Diverging Bars Split Up and Down From a Zero Line That Moves With the Data — Measured area 36.38% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Bar Chart Animation: 9 Demos From Spring to Race

The post this demo lives in

Bar Chart Animation: 9 Demos From Spring to Race - preview of all 9 demosBar Chart Animation: 9 Demos From Spring to RaceWhen bars jump straight to new values, the eye misses what grew. So 01 grows bars on a spring that overshoots once, 02 s See all demos in this post

If you like this effect - similar demos