Skip to content
animorio
IT
All components

Bingo card

Games, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.0 KBGSAP 28 KBFreeDownload the zip

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!”.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On white, a light card: at the top the title “Bingo night” and the ball count, below the letters B I N G O in pink and the grid of five by five white squares with their numbers, “Free” already daubed in the middle; at the bottom the dark “Call a ball” button. On opening the squares appear from the centre outwards. On every tap the button tightens and bounces and a glossy pink ball rolls in from the right, with half a turn, its letter above its number; the ball before moves to the row of small discs on the right and the ball count goes up. If the number is on the card, a slightly uneven pink mark drops on the square, larger and turned, and settles, while the number grows heavy; if it is not, the ball shakes its head. At the fifth square of a row, column or diagonal a pink ring closes around the line from end to end, the five squares hop in a wave, the title rolls to “Bingo!” and the button turns pink: “New card”, which removes the marks and starts over.

How it works

The balls of the game

The 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 mark

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 full line

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.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#e8467cThe colour of the ball, the marks and the winning ring.
ROLLscript.js0.7How long the called ball takes to roll in.
SPRINGscript.js1How much the mark, the squares and the button bounce.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • A daubed square is not told by colour alone: its number grows much heavier and every ball is announced in an aria-live region, with “on your card” when it is.
  • In a real game the server draws the balls: here the order is written in the script so the demo always reaches Bingo on the seventh.
  • The winning ring is measured in pixels from the squares: if the card changes width while it is showing it must be worked out again.

Libraries

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.

Testing

Tested on 26 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components