Skip to content
animorio
IT
Back to the library

MRR waterfall chart

SVG, HoverGSAP, CSS onlyAdvancedCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The MRR card of Brightloop, a made-up subscription analytics app, on a dark ground: the month is told as a waterfall. October’s total grows from the floor on a spring, a thin bridge runs across at its level and each movement (new business, expansion, reactivations, contraction, churn) hangs from the bridge before it, up in green or down in coral, until November’s total closes the count. Pointing at a step lights the path that leads there, a ruler holds the level reached with its figure in a tag, the total at the top rolls digit by digit to that point and a glass label gives the step, the accounts behind it and how it went in October.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "MRR waterfall chart" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The dashboard MRR waterfall chart with the bridges that light up and the total that rolls</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the MRR card of a made-up subscription analytics app. The month falls like a waterfall: October's total
         grows, a thin bridge runs across at its level, and every movement (new business, expansion, reactivations,
         contraction, churn) hangs from the bridge before it, up in green or down in coral, until November's total
         closes it. Pointing at a step lights the path that leads to it, a ruler holds its level and the total at the
         top rolls to what the MRR was right after it; a glass label gives the step and how it went in October -->
    <section class="card" data-card aria-label="MRR movement in November">
      <span class="card__sheen" aria-hidden="true"></span>
      <span class="card__rim" aria-hidden="true"></span>
      <header class="card__head">
        <div class="card__id">
          <svg class="card__mark" viewBox="0 0 28 28" aria-hidden="true">
            <rect x="0.5" y="0.5" width="27" height="27" rx="8.5"></rect>
            <path d="M8.2 17.4a5.8 5.8 0 0 1 0-6.8 4.4 4.4 0 0 1 6.9 0l-2.2 3.4 2.2 3.4a4.4 4.4 0 0 0 6.9 0 5.8 5.8 0 0 0 0-6.8 4.4 4.4 0 0 0-6.9 0"></path>
          </svg>
          <div>
            <h1 class="card__title">MRR movement</h1>
            <p class="card__sub">Brightloop <span class="card__sep">/</span> November 2026</p>
          </div>
        </div>
        <p class="net is-up" data-net>
          <svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3.2 8.8 8.6 3.4M4.6 3.2h4.2v4.2"></path></svg>
          <span data-net-num></span><span class="net__word">net new</span>
        </p>
      </header>

      <div class="total">
        <p class="total__label" data-label>MRR on Nov 30</p>
        <div class="total__row">
          <p class="total__num" data-total aria-label=""></p>
          <p class="chip" data-chip><span data-chip-text></span></p>
        </div>
      </div>

      <div class="chart" data-chart tabindex="0" role="group" aria-label="MRR movement by step. Use the arrow keys to read a step.">
        <span class="glow" data-glow aria-hidden="true"></span>
        <svg class="plot" data-plot aria-hidden="true"></svg>
        <div class="tip" data-tip aria-hidden="true">
          <div class="tip__glass" data-tip-glass>
            <p class="tip__name" data-tip-name></p>
            <p class="tip__num" data-tip-num></p>
            <p class="tip__sub" data-tip-sub></p>
            <p class="tip__vs">
              <span data-tip-then></span>
              <b class="tip__pill" data-tip-pill>
                <svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3.2 8.8 8.6 3.4M4.6 3.2h4.2v4.2"></path></svg>
                <i data-tip-pct></i>
              </b>
            </p>
          </div>
        </div>
      </div>
      <div class="axis" data-axis aria-hidden="true"></div>
      <p class="sr" aria-live="polite" data-live></p>
    </section>

    <svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

45 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “MRR waterfall chart” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On an almost black ground, with a faint violet light, sits Brightloop’s dark card: at the top the mark, MRR movement and Brightloop / November 2026, on the right the green pill +$6,260 net new. Below, MRR on Nov 30 and the large total, with the digits rolling from zero to $54,460 in their windows, and beside it the pill +13.0% this month. Then the waterfall chart: seven columns, Oct 31, New, Expansion, Reactivated, Contraction, Churn and Nov 30, on thin dashed lines from $44k to $60k, with a small zigzag at the bottom left saying the axis does not start at zero. On arrival October’s violet bar grows from the floor on a spring that goes a pixel too far; a dashed bridge runs across at its level to the next column and from there the green new-business bar stretches upwards, then the next bridge, expansion, reactivations; contraction and churn drop in coral and November’s violet bar rises to close. Each bar has its gloss on the left, the thread of light on top, a soft coloured shadow below and its figure (+6.8k, −3.0k). Pointing at a column, the bars and bridges leading there light up and the ones after fade, a pool of light in the step’s colour opens on the floor, a dashed ruler crosses the chart at the level reached with its white tag on the left ($58.2k), the heading becomes After expansion and the total rolls to that figure with the step’s pill beside it, and a dark glass label gives the step, the figure, how many accounts are behind it and the comparison with October: for churn, less is better, so 11.0% less in green.

How it works

A waterfall of springs

Every bar and every bridge is a spring kept in parts (0 to 1): a movement’s bar starts at the level of the step before and stretches towards its own, the bridge draws itself from one column to the next. A GSAP timeline sets the springs off one after another with staggered calls, and one loop on GSAP’s ticker moves them all and sleeps when they are still.

Drawn in pixels every frame

The SVG’s viewBox is as large as the chart, and every frame the script works out rectangles, glosses, shadows, bridges, figures and ruler in pixels from the springs and the chart’s size: a resize in the middle of a movement only changes the drawing, never the motion.

Reading a step

The pointer picks the column from its x; the columns before stay lit and the ones after dim, the ruler follows the level on a spring, the total at the top rolls with a strip of digits per window and the glass label sits beside the bar on two more springs. For money going out the comparison with October is on the size: less churn is green.

Values to change

NameFileDefaultWhat it changes
START_MRRscript.js48200The MRR at the start of the month, the first total.
MOVESscript.js[6840, 3120, 740, …]The month’s five movements: new business, expansion, reactivations, contraction, churn.
LAST_MONTHscript.js[5910, 2640, 910, …]The same movements in October, for the comparison in the label.
ACCOUNTSscript.js[38, 21, 6, …]How many accounts each movement is.
GROWscript.js[190, 0.7]The bars’ spring: how stiff, and how much it is held back (1 = no overshoot).
CASCADEscript.js0.24Seconds between one step of the waterfall and the next.
DIMscript.js0.62How much the steps after the one being read fade.
RULERscript.js[320, 0.84]The spring the ruler follows the level on.
TIPscript.js[260, 0.82]The spring the glass label follows the step on.
ROLLscript.js0.7Seconds the total at the top takes to roll.
--upstyle.css#3ddc97The green of money coming in.
--downstyle.css#ff7b6bThe coral of money going out.
--totalstyle.css#8f94ffThe violet of the two totals.

Try them in the Playground

When to use it

For the dashboard of a subscription app, a SaaS or an analytics service: it shows where the month’s growth comes from and where it leaks, and whoever points at it reads each step with the total at that point.

On phones

The same animation with adapted sizes: the card and the chart are sized on the height too, the step names shorten (Exp., React., Contr.) and the words net new hide; a tap on a column reads it.

With reduced motion

No motion: the waterfall is already drawn with the total in place; reading a step, ruler, figures and label change without sliding.

Pitfalls

  • GSAP does not read CSS variables inside SVG gradient colours: the :root colours are read once with getComputedStyle and written already resolved into the stops.
  • With Mona Sans no tabular-nums on the total: the tabular zero has a slash; the digits sit in windows of the same width, the comma in a narrower one.
  • For churn and contraction the comparison with last month is on the size, not the sign: −$2,980 against −$3,350 is an improvement and goes green.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.

Testing

Tested on 15 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations