Skip to content
animorio
IT
Back to the library

Mini crossword

Text, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.3 KBGSAP 28 KBFreeDownload the zip

A five by five mini crossword, in a card on warm white: tapping a square lights up its whole word in blue, with the cursor square darker, and below the clue rolls in (“1 Across, It purrs”). Letters are typed from the keyboard or come in one by one with “Reveal word”, each with a small hop; the crossings stay. A finished word makes its squares nod, and when the grid is complete all the squares do a wave and the timer stops. Minimal style.

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>
<!--
  "Mini crossword" 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>Mini crossword</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">
    <!-- a five by five mini crossword: the chosen word lights up with its clue, the letters come in one by one,
         the crossings stay, and the grid does a wave when it is done -->
    <section class="cw" data-cw aria-label="Mini crossword">
      <header class="cw__head">
        <div class="cw__what"><strong>Mini crossword</strong><span class="cw__clip"><span data-outleft>8 words to find</span></span></div>
        <span class="cw__time" role="timer" data-outtime>0:00</span>
      </header>

      <div class="cw__grid" data-grid role="grid" aria-label="Crossword grid"></div>

      <p class="cw__clue"><b class="cw__clip cw__clip--tag"><span data-outtag>1 Across</span></b><span class="cw__clip cw__clip--clue"><span data-outclue>It purrs</span></span></p>

      <div class="cw__row">
        <button type="button" class="cw__btn" data-reveal><span class="cw__clip cw__clip--btn"><span data-outbtn>Reveal word</span></span></button>
        <button type="button" class="cw__btn cw__btn--quiet" data-clear>Clear</button>
      </div>
    </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.

15 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 “Mini crossword” 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 warm white, a rounded card: at the top “Mini crossword”, “8 words to find” and on the right the time, “0:00”. In the middle the grid, five by five on black, with rounded white squares, the small clue numbers and seven black squares. The three squares of the first word are blue, the first one darker. Below, a grey row: the blue tag “1 Across” and the clue “It purrs”. At the bottom the dark button “Reveal word” and beside it “Clear”. Tapping a square picks its word; a second tap on the same square turns from across to down, and tag and clue roll. Typing from the keyboard the letter enters the cursor square, which moves on; “Reveal word” brings in the missing letters one after another, each with a hop from below, while the cursor follows them and the timer runs. When a word is done its squares nod in a row and the count at the top goes down; the button becomes “Next word”. With the last letter all the squares do a wave from one corner to the other, the blue goes off, the time turns blue and stops, and it says “Solved. Well played”. “Clear” empties the grid.

How it works

The grid is text

Five rows of five characters, with a hash for black squares: from them the script builds the squares, the numbers and the list of words, the way a real crossword is numbered.

Each square knows its words

A square knows the across word and the down word running through it: one tap picks, the second tap switches to the other.

Letters one by one

Revealing a word is a small timeline: at each step the cursor moves and a letter comes in on a spring. Squares that are already right are left alone.

The end is checked

After every letter the grid is compared with the solution: a full word nods, a full grid does the wave and stops the timer.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#2f6fe4The colour of the chosen word, the cursor square and the finish.
PACEscript.js0.16How many seconds between letters when a word is revealed.
LOOPscript.jstrueLeft alone, the demo’s pointer picks the words and reveals them one by one.

Try them in the Playground

When to use it

On the games page of a newspaper or a blog, in a newsletter that wants a pastime, in a language learning app or as a break on a content site; the same grid carries a word game of the day, a quiz in squares or a word search.

On phones

The card is at most 300 pixels wide and about 360 tall. The squares are 38 pixels and narrow with the screen’s width and height, staying square. On a phone letters come in with “Reveal word”: the system keyboard does not open.

With reduced motion

Letters appear in the squares without hops, a revealed word fills all at once, no nodding squares or final wave; tag, clue and texts change in one step. The demo’s pointer does not start.

Pitfalls

  • The chosen word is not told by colour alone: tag and clue write it, and every choice is announced to screen readers with direction, clue and number of letters.
  • Every square has a label with row, column and letter: without it, for those who cannot see, the grid is a row of mute buttons.
  • Keys are listened for on the document, not on a text field: that is why a phone needs the button, or a real hidden field if you want the keyboard.
  • Revealing a word must not rewrite crossing letters that are already right: they would hop again for no reason.
  • Grid and clues are ours and made up for the demo; a new grid is written by changing five lines of text and the clues.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.3 KB; the libraries: GSAP 28 KB.

Testing

Tested on 2 December 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 animations