
The inchworm menu
Menus, Hover, Transitions
The live score card of a sports app, in smoked glass over two soft lights in the team colours, like a Dribbble shot: the last overs of a T20 cricket final. Ball by ball the digits of the score and of the overs roll on a spring, the ball lands as a chip in This over and the line of commentary drops into the list pushing the old one down; a four or a six sends a band of light across the glass, a wicket flushes it red. Match stats opens the card: win probability and three tiles that keep rolling.
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>
<!--
"Live cricket scoreboard" 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 live cricket scoreboard that opens into the stats</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>
<!-- two soft team lights behind the glass: mint for the side batting, amber for the side bowling -->
<span class="aura aura--bat" data-aura-bat aria-hidden="true"></span>
<span class="aura aura--bowl" data-aura-bowl aria-hidden="true"></span>
<div class="wrap" data-wrap>
<article class="score" data-card aria-label="Live score">
<span class="score__light" aria-hidden="true"></span>
<span class="score__rim" aria-hidden="true"></span>
<span class="score__tint" data-tint aria-hidden="true"></span>
<span class="score__sweep" aria-hidden="true"><span class="score__sweep-band" data-sweep></span></span>
<div class="score__body" data-body>
<header class="score__head">
<span class="live" data-live-chip>
<svg class="live__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M5.2 5.2a4 4 0 0 0 0 5.6M10.8 5.2a4 4 0 0 1 0 5.6M3.2 3.2a6.8 6.8 0 0 0 0 9.6M12.8 3.2a6.8 6.8 0 0 1 0 9.6"/><path class="live__core" d="M8 7.1v1.8"/></svg>
<span class="live__word" data-live-word>Live</span>
</span>
<span class="score__match">Harbour Cup final · T20</span>
</header>
<div class="team team--bat" data-bat>
<span class="crest crest--bat" aria-hidden="true"><span data-bat-letter>K</span></span>
<span class="team__names">
<span class="team__name" data-bat-name>Kites</span>
<span class="team__sub">Batting · chasing</span>
</span>
<span class="team__figures">
<span class="team__score roll" data-roll="score">168/4</span>
<span class="team__overs"><span class="roll" data-roll="overs">18.3</span> ov</span>
</span>
</div>
<div class="team team--bowl">
<span class="crest crest--bowl" aria-hidden="true"><span data-bowl-letter>F</span></span>
<span class="team__names"><span class="team__name team__name--small" data-bowl-name>Falcons</span></span>
<span class="team__line" data-bowl-line>176/8 · 20 ov</span>
</div>
<p class="need"><span class="need__words" data-need>Need 9 off 9 balls</span></p>
<div class="over">
<span class="over__label">This over</span>
<span class="over__balls" data-balls>
<span class="ball"><span class="ball__chip"></span></span>
<span class="ball"><span class="ball__chip"></span></span>
<span class="ball"><span class="ball__chip"></span></span>
<span class="ball"><span class="ball__chip"></span></span>
<span class="ball"><span class="ball__chip"></span></span>
<span class="ball"><span class="ball__chip"></span></span>
</span>
</div>
<ol class="feed" data-feed aria-label="Ball by ball"></ol>
<div class="stats" data-stats id="match-stats">
<div class="stats__inner">
<div class="prob" data-stat>
<div class="prob__labels">
<span><span data-prob-bat-name>Kites</span> <b class="roll" data-roll="probBat">62</b>%</span>
<span class="prob__title">Win probability</span>
<span><b class="roll" data-roll="probBowl">38</b>% <span data-prob-bowl-name>Falcons</span></span>
</div>
<div class="prob__bar"><span class="prob__fill" data-prob-fill></span></div>
</div>
<div class="tiles">
<div class="tile" data-stat><span class="tile__label">Run rate</span><span class="tile__value roll" data-roll="rr">9.08</span></div>
<div class="tile" data-stat><span class="tile__label">Required</span><span class="tile__value roll" data-roll="req">6.00</span></div>
<div class="tile" data-stat><span class="tile__label">Partnership</span><span class="tile__value roll" data-roll="part">38 (24)</span></div>
</div>
</div>
</div>
<button class="toggle" type="button" data-toggle data-autoclic aria-expanded="false" aria-controls="match-stats">
<span class="toggle__face" data-toggle-face>
<span class="toggle__words" data-toggle-words>Match stats</span>
<span class="toggle__knob"><svg class="toggle__chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5L8 10l3.5-3.5"/></svg></span>
</span>
</button>
</div>
</article>
</div>
<p class="sr" aria-live="polite" data-announce></p>
</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.
44 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 “Live cricket scoreboard” from Animorio and fit it into my siteEvery digit is a strip with the numbers 0 to 9 inside a window one digit tall, with a mask that fades at the top and bottom: to change it GSAP moves the strip by yPercent = -digit × 10 with a back.out, starting from the rightmost digit. When the shape of the number changes (6 (1) after 43 (26)) the text is rebuilt and the pieces rise one after the other.
The ball is a chip inside its slot that arrives from scale 0.45 with a strong back.out; the new line goes on top of the list at height 0 and GSAP brings it to its height, so the others move down by themselves, while the content arrives from above on a spring and the tag swells. The oldest line dims and is removed at the end.
The card has backdrop-filter over two blurred lights that drift slowly; on the glass three layers: the light under the pointer and the edge that catches it (the same radial gradient, the second cut to one pixel with mask-composite), a red tint for the wickets and a diagonal band that crosses the card for fours and sixes.
The panel opens with grid-template-rows from 0fr to 1fr and the ball by ball list goes from two rows to one with a CSS transition: no heights measured in pixels, so it stays right even when the window changes halfway. The tiles arrive staggered on a spring and the probability bar starts from zero.
A chain of gsap.delayedCall plays one ball every PACE seconds starting from the load event; the last ball wins, the card stays on the result for HOLD seconds, then fades and starts again. The first real touch only stops the automatic opening of the stats: the match goes on.
| Name | File | Default | What it changes |
|---|---|---|---|
BATTING | script.js | Kites | The team chasing (its first letter goes on the crest). |
BOWLING | script.js | Falcons | The team that batted first. |
TARGET | script.js | 177 | The runs needed to win: the card starts 9 short with 9 balls to go. |
PACE | script.js | 2.4 | How many seconds pass between one ball and the next. |
SPRING | script.js | 1 | How springy the moves are: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 3.2 | How many seconds the result stays before the overs play again. |
AUTO | script.js | true | The card opens and closes the stats by itself until someone touches it. |
For the app or site of a league, a club or a sports paper: the live score of a cricket match, but the same card holds football, basketball or tennis by changing the lines. It says at a glance who is winning, what is left and what just happened, and keeps the stats one tap away.
On the phone the card is 88% of the screen wide and its sizes follow the height too, so it opens into the stats without leaving the box; there is no hover, the light on the edge stays at the top and the rest is the same.
Nothing moves: the digits change in place with a fade, the balls and the lines of commentary fade in, the band of light becomes an edge that lights up and the stats panel opens at once.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 3 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.