
The elastic button
Buttons, Hover, Text
The bingo card of a game night: on every tap of “Call a ball” a glossy ball rolls in with its letter and number, the one before goes to the small row on the right, and if the number is on the card its square takes the dauber’s pink mark, on a bounce. When a line is full a pink ring closes around it, the five squares hop one after the other and the title rolls to “Bingo!”.
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>
<!--
"Bingo card" 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>Bingo card</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 bingo card of a game night: the called ball rolls in, the matching square gets daubed
and a full line is struck through: Bingo -->
<section class="bg" data-bg aria-label="Bingo card">
<header class="bg__top">
<span class="bg__ball" data-ball aria-hidden="true"><b data-outletter>B</b><strong data-outnum>12</strong></span>
<span class="bg__title"><span class="bg__name"><span data-outname>Bingo night</span></span><span class="bg__status" data-outstatus>No balls yet</span></span>
<span class="bg__past" aria-hidden="true"><i data-past></i><i data-past></i><i data-past></i></span>
</header>
<div class="bg__letters" aria-hidden="true"><b>B</b><b>I</b><b>N</b><b>G</b><b>O</b></div>
<div class="bg__grid" data-grid>
<span class="bg__cell" data-cell data-n="B4"><i class="bg__daub" aria-hidden="true"></i><b>4</b></span>
<span class="bg__cell" data-cell data-n="I19"><i class="bg__daub" aria-hidden="true"></i><b>19</b></span>
<span class="bg__cell" data-cell data-n="N38"><i class="bg__daub" aria-hidden="true"></i><b>38</b></span>
<span class="bg__cell" data-cell data-n="G52"><i class="bg__daub" aria-hidden="true"></i><b>52</b></span>
<span class="bg__cell" data-cell data-n="O63"><i class="bg__daub" aria-hidden="true"></i><b>63</b></span>
<span class="bg__cell" data-cell data-n="B9"><i class="bg__daub" aria-hidden="true"></i><b>9</b></span>
<span class="bg__cell" data-cell data-n="I27"><i class="bg__daub" aria-hidden="true"></i><b>27</b></span>
<span class="bg__cell" data-cell data-n="N33"><i class="bg__daub" aria-hidden="true"></i><b>33</b></span>
<span class="bg__cell" data-cell data-n="G47"><i class="bg__daub" aria-hidden="true"></i><b>47</b></span>
<span class="bg__cell" data-cell data-n="O71"><i class="bg__daub" aria-hidden="true"></i><b>71</b></span>
<span class="bg__cell" data-cell data-n="B12"><i class="bg__daub" aria-hidden="true"></i><b>12</b></span>
<span class="bg__cell" data-cell data-n="I22"><i class="bg__daub" aria-hidden="true"></i><b>22</b></span>
<span class="bg__cell is-free" data-cell data-n="free" data-on><i class="bg__daub" aria-hidden="true"></i><b>Free</b></span>
<span class="bg__cell" data-cell data-n="G58"><i class="bg__daub" aria-hidden="true"></i><b>58</b></span>
<span class="bg__cell" data-cell data-n="O68"><i class="bg__daub" aria-hidden="true"></i><b>68</b></span>
<span class="bg__cell" data-cell data-n="B7"><i class="bg__daub" aria-hidden="true"></i><b>7</b></span>
<span class="bg__cell" data-cell data-n="I16"><i class="bg__daub" aria-hidden="true"></i><b>16</b></span>
<span class="bg__cell" data-cell data-n="N41"><i class="bg__daub" aria-hidden="true"></i><b>41</b></span>
<span class="bg__cell" data-cell data-n="G49"><i class="bg__daub" aria-hidden="true"></i><b>49</b></span>
<span class="bg__cell" data-cell data-n="O74"><i class="bg__daub" aria-hidden="true"></i><b>74</b></span>
<span class="bg__cell" data-cell data-n="B15"><i class="bg__daub" aria-hidden="true"></i><b>15</b></span>
<span class="bg__cell" data-cell data-n="I30"><i class="bg__daub" aria-hidden="true"></i><b>30</b></span>
<span class="bg__cell" data-cell data-n="N44"><i class="bg__daub" aria-hidden="true"></i><b>44</b></span>
<span class="bg__cell" data-cell data-n="G60"><i class="bg__daub" aria-hidden="true"></i><b>60</b></span>
<span class="bg__cell" data-cell data-n="O66"><i class="bg__daub" aria-hidden="true"></i><b>66</b></span>
<span class="bg__line" data-line aria-hidden="true"></span>
</div>
<button class="bg__btn" type="button" data-btn><span class="bg__btntext"><span data-outbtn>Call a ball</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.
44 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 “Bingo card” from Animorio and fit it into my siteThe order they come out in is a list at the top of the script: some balls are on the card, some are not. Every tap takes the next one, writes it in the big ball and the one before steps down to the small row.
The square with the called number gets an attribute: CSS makes its number heavier, GSAP drops the mark from scale 1.9 and thirty degrees of turn to scale 1, on an elastic spring.
The twelve possible lines (rows, columns, diagonals) are lists of five squares. After every mark a fully daubed line is looked for: the pink ring is laid from the first square to the last, turned by the right angle, and is revealed with a clip-path.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #e8467c | The colour of the ball, the marks and the winning ring. |
ROLL | script.js | 0.7 | How long the called ball takes to roll in. |
SPRING | script.js | 1 | How much the mark, the squares and the button bounce. |
On the page of a game night, a fundraiser or a company party; in a party games app, in a live stream where viewers play from home. The same design carries a tombola or a card of goals to complete.
The card is at most 268 pixels wide and about 360 tall: it fits any phone screen. The squares are 36 pixels tall and are not tapped (the game daubs them); the button is as wide as the card and 40 tall.
The ball does not roll: it fades in. The marks and the winning ring are in place at once, with no hops or bounces. 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.0 KB; the libraries: GSAP 28 KB.
Tested on 26 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.