
Speeding marquee
Scroll, Text, Hover
Test coverage on a small function, in a card on black, minimal style: ten lines of code, each with its strip. “Run tests” marks them one after the other from the top: the green strip fills, the number of times the line ran comes in and the percentage counts up to 86. The line no test reaches stays hatched in amber, with its zero. Pointing at a line says what happened to it; “Add the missing test” takes everything to a hundred, with a light running along the bar.
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>
<!--
"Test coverage" 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>Test coverage</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">
<!-- test coverage on a small function: running the tests marks the lines one by one, the line no test reaches
stays hatched, the percentage counts, and pointing at a line says how many times it ran -->
<section class="cv" data-cv aria-label="Test coverage">
<header class="cv__head">
<div class="cv__file"><strong>cart.js</strong><span class="cv__clip"><span data-outsum>Not measured yet</span></span></div>
<span class="cv__pct" aria-hidden="true"><b data-outpct>0</b><i>%</i></span>
</header>
<div class="cv__bar" aria-hidden="true"><i data-bar></i><i class="cv__shine" data-shine></i></div>
<ol class="cv__code" data-code aria-label="Source lines"></ol>
<p class="cv__info"><span class="cv__clip"><span data-outinfo>Run the tests to see what they reach.</span></span></p>
<button type="button" class="cv__btn" data-next><span class="cv__clip"><span data-outnext>Run tests</span></span></button>
</section>
<span class="live" aria-live="polite" data-live></span>
<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.
16 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 “Test coverage” from Animorio and fit it into my siteEach line has its text and two numbers: how many times it runs with the current tests and how many with the extra one. Where there is nothing to run, no number.
The lines take their state one after the other, staggered: the strip grows from the top and the count comes in from the right.
Zero runs means a dashed strip, a hatch behind the line and the number zero: three signs, not just a colour.
It is the count of lines run at least once over the runnable ones, and it climbs for the whole length of the sweep.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #5fe0a8 | The colour of the lines the tests reach. |
PACE | script.js | 0.12 | How many seconds pass between one line and the next while the tests run. |
SPRING | script.js | 1 | How much the percentage bounces on landing. |
LOOP | script.js | true | Left alone, the demo’s pointer runs the tests, points at two lines and adds the missing test. |
On the page of a testing or continuous integration tool, in the documentation of a library that wants to show how well tested it is, and in a developer’s portfolio. The same line-by-line sweep carries a spell check, a review or the reading of a contract.
The card is at most 348 pixels wide and about 345 tall: the code is at 10.5 pixels (10 under 350) and no line is longer than 31 characters, so it never wraps or gets cut. With a finger a tap on a line shows its text, another removes it.
No sweep: strips, counts, hatch and percentage are in place at once, and the texts change in one step. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.5 KB; the libraries: GSAP 28 KB.
Tested on 1 December 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.