
The colour columns
Hover, SVG
The results of an A/B test in a dashboard, to read day by day. Drag the day and the two variants’ conversion rates change while their uncertainty ranges narrow: at first they overlap (and B is even behind), then they pull apart. When the confidence passes 95% the test turns “Significant” and B gets the “Winner” tag.
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>
<!--
"A/B test results" 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>A/B test results</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 results of an A/B test, day by day: drag the day and the two likely ranges narrow, cross, pull apart;
when they stop touching the confidence passes the line and the winner is called -->
<section class="ab" data-ab aria-label="A/B test results">
<header class="ab__head">
<h2 class="ab__title">Checkout button</h2>
<span class="ab__chip" data-chip><span class="ab__roll"><span data-status>Collecting data</span></span></span>
</header>
<p class="ab__meta"><span data-day>Day 1 of 14</span> · <span data-visitors>1,000</span> visitors</p>
<div class="ab__row" data-row="a">
<div class="ab__line">
<span class="ab__key">A</span>
<span class="ab__name">Buy now</span>
<span class="ab__range" data-range="a"></span>
<span class="ab__rate" data-rate="a"></span>
</div>
<div class="ab__track"><span class="ab__band" data-band="a"></span><span class="ab__tick" data-tick="a"></span></div>
</div>
<div class="ab__row ab__row--b" data-row="b">
<div class="ab__line">
<span class="ab__key">B</span>
<span class="ab__name">Get it today</span>
<span class="ab__win" data-win>Winner</span>
<span class="ab__range" data-range="b"></span>
<span class="ab__rate" data-rate="b"></span>
</div>
<div class="ab__track"><span class="ab__band" data-band="b"></span><span class="ab__tick" data-tick="b"></span></div>
</div>
<dl class="ab__stats">
<div><dt>Uplift</dt><dd data-uplift></dd></div>
<div>
<dt>Confidence</dt><dd data-conf></dd>
<span class="ab__meter" aria-hidden="true"><span class="ab__meterfill" data-meter></span><span class="ab__level" data-level></span></span>
</div>
</dl>
<label class="ab__days">
<span class="ab__sr">Day of the test</span>
<input type="range" min="1" max="14" step="1" value="1" data-days>
<span class="ab__ends" aria-hidden="true"><span>Day 1</span><span>Day 14</span></span>
</label>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.
26 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “A/B test results” from Animorio and fit it into my siteFrom the day’s rates and visitors come each variant’s standard error, the z-score of the difference and the confidence (with an approximation of the error function). Change the traffic and the answer arrives sooner or later.
Each range is 1.39 standard errors either side: at that width, two ranges that stop touching correspond, roughly, to 95% confidence. So the eye sees what the number says.
A single object holds the values being drawn; on a new day a GSAP tween takes it to the new values and every step rewrites figures, ranges, marks and the little bar.
Only when the confidence crosses the line, either way, do the chip, the range colour and the “Winner” change: not on every day.
The days are a range input restyled in CSS: arrows, Home and End work, and aria-valuetext says day, rates and confidence.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #1e9e62 | The colour of the winning variant. |
TRAFFIC | script.js | 500 | How many visitors a day each variant gets: with more traffic the answer arrives sooner. |
LEVEL | script.js | 95 | The confidence, in percent, past which the test is called. |
START | script.js | 1 | The day shown at the start, from 1 to 14. |
LOOP | script.js | true | Left alone, the demo’s pointer drags the days forward, goes back and runs to the end. |
In the dashboard of an analytics or experimentation tool, in the back office of an online shop trying two buttons, on the site of a marketing product that wants to show how a test works.
The same card, as wide as the screen: the day slider has a 22-pixel thumb with a 24-pixel touch area and does not scroll the page while dragged.
On a new day the numbers, ranges and chip jump straight to the new values, with no gliding or bouncing. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.1 KB; the libraries: GSAP 28 KB.
Tested on 21 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.
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.