
The colour columns
Hover, SVG
The bill card in an energy provider’s app: the total counts up to 86.40 euros above one solid orange bar, then the bar cuts itself into four pieces (energy, network, taxes, VAT) and the items arrive one after the other with their amounts. Pointing at an item, its piece lifts, the others dim and the total becomes its share.
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>
<!--
"Energy bill breakdown" 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 month's energy bill that breaks down into its items</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">
<!-- the bill card of an energy provider's app: one solid bar and the total; then the bar cuts itself into
its items (energy, network, taxes, VAT) and the rows arrive one by one with their amounts counting.
Pointing at a row or a segment lifts that piece, dims the others and rolls the total to its share -->
<article class="card" data-card>
<header class="head">
<div class="head__text">
<p class="head__eyebrow"><span data-eyebrow>November bill</span></p>
<p class="head__total"><span data-total>€86.40</span></p>
</div>
<p class="head__chip"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.2 1.8 3.8 9h3.6l-.8 5.2L12.2 7H8.4Z"></path></svg><span>312 kWh</span></p>
</header>
<svg class="bar" data-bar viewBox="0 0 300 16" preserveAspectRatio="none" aria-hidden="true"></svg>
<ul class="rows" data-rows></ul>
</article>
<svg class="ghost" data-ghost 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>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.
16 values to change
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 “Energy bill breakdown” from Animorio and fit it into my siteAn SVG with one rectangle per item, as wide as its share of the total. When joined, the rectangles overlap by 6 units and all have the full colour, so no seams show; at the cut GSAP animates the x and width attributes (attr) to open GAP-wide spaces and the opacity to give each piece its shade.
The rows start 10 pixels lower and transparent, and arrive staggered by STAGGER seconds together with their piece; each amount counts from zero with a tween on a number.
One function, pick(i): it lifts and enlarges the chosen piece from the bottom (transform-origin at the bottom), takes the others to 30%, puts the class on the row and rolls total and eyebrow. Rows, bar pieces, keyboard focus and the drawn pointer all call it.
| Name | File | Default | What it changes |
|---|---|---|---|
MONTH | script.js | November bill | The line above the total. |
ITEMS | script.js | Energy used:41.20, Network & meter:21.60, Taxes:15.70, VAT:7.90 | The bill’s items: name:amount, separated by commas (up to five). |
CURRENCY | script.js | € | The currency symbol. |
ACCENT | script.js | #f0731f | The colour of the bar. |
GAP | script.js | 3 | The space between segments when the bar cuts. |
STAGGER | script.js | 0.09 | The seconds between one item and the next. |
REST | script.js | 1.1 | On its own: how long it stops on each item. |
LOOP | script.js | true | Left alone, a pointer goes over the items. |
For the customer area of a power and gas provider, a smart home app, a spending or subscriptions dashboard: wherever a total has to be explained piece by piece. The items change in one line; total and percentages work themselves out.
The same card, as wide as the screen minus the margins and with slightly lower rows. With no pointer, tap an item to choose it and tap it again to go back to the total.
The bar is already cut and the items already in place, they fade in. On hover only opacities and numbers change, with no pieces lifting.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.3 KB; the libraries: GSAP 28 KB.
Tested on 15 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.