Skip to content
animorio
IT
Back to the library

Type tester shuffle

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

Plinth, a made-up website builder, opens the typography page of its brand book with a specimen that sets itself: the name typed letter by letter, a condensed word sliding in from the side, a serif line rising, the block lifting and an italic line. Then a sentence types itself and you can write over it; Shuffle changes the typeface and the background, with the name and the HEX code rolling. Minimal style. From the type tester of Squarespace Foundations, Awwwards Site of the Day on 1/9/2026.

Rebuilt from scratch studying brand.squarespace.com by Resn, Squarespace: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Type tester shuffle" 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>Plinth, brand foundations: typography</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bricolage-grotesque@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/wght-italic.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/archivo@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Plinth, a made-up website builder, and the typography page of its brand book. First a specimen plays: the name
       types in letter by letter, a condensed line slides in, a serif line rises, the block lifts and an italic line
       follows, then it all blinks away in reverse. Then a sentence types itself and you can write over it; Shuffle
       moves to the next typeface and the next background. -->
  <main class="page" data-page>
    <header class="bar">
      <p class="brand">
        <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 16.5h14M5.5 16.5V9.2h9v7.3M4 9.2 10 3.5l6 5.7" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/></svg>
        <span>Plinth</span><span class="brand__sub">Foundations</span>
      </p>
      <p class="bar__label">Typography</p>
    </header>

    <section class="stage" data-stage>
      <div class="seq" data-seq aria-hidden="true">
        <p class="seq__row seq__name" data-row="name"></p>
        <p class="seq__row seq__cond"><svg class="seq__arrow" data-arrow viewBox="0 0 40 24"><path d="M2 12h34M26 3l10 9-10 9" fill="none" stroke="currentColor" stroke-width="3.2" stroke-linecap="square"/></svg><span data-row="cond"></span></p>
        <p class="seq__row seq__serif" data-row="serif"></p>
        <p class="seq__row seq__italic" data-row="italic"></p>
      </div>

      <div class="tester" data-tester>
        <p class="tester__text" data-text contenteditable="true" spellcheck="false" aria-label="Type to try the typeface"></p>
        <span class="caret" data-caret aria-hidden="true"></span>
      </div>
    </section>

    <footer class="foot">
      <div class="meta">
        <p class="meta__label">Typeface</p>
        <p class="roll" data-roll="face"><span>Plinth Sans</span></p>
      </div>
      <div class="meta meta--hex">
        <p class="meta__label">Background</p>
        <p class="roll roll--mono" data-roll="hex"><span>#111111</span></p>
      </div>
      <button class="shuffle" type="button" data-shuffle aria-label="Shuffle typeface and background">
        <span class="shuffle__bg" data-shuffle-bg aria-hidden="true"></span>
        <svg class="shuffle__icon" data-shuffle-icon viewBox="0 0 20 20" aria-hidden="true"><path d="M2.5 6h3.2c2.6 0 3.6 1.4 4.6 4s2 4 4.6 4h2.6M2.5 14h3.2c1.5 0 2.4-.5 3.1-1.3M11.6 7.3c.7-.8 1.6-1.3 3.1-1.3h2.6M15.3 3.8 17.5 6l-2.2 2.2M15.3 11.8l2.2 2.2-2.2 2.2" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
        <span class="shuffle__label" data-shuffle-label>Shuffle</span>
      </button>
    </footer>
  </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.

17 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 “Type tester shuffle” 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

At the top, the Plinth brand with «Foundations» and the Typography label; at the bottom, the typeface name, the background code and the Shuffle pill. In the middle the specimen plays first: «Plinth» appears a letter at a time, an arrow and «HARBOURSIDE» in a jet black condensed slide in from the left, «* LISBON /» in a serif rises word by word, the whole block lifts as «( Alfama )» arrives in italic, and then the words vanish in reverse, one after the other. Then «Start typing in Plinth here» types itself, with the brand name in italic and a caret that follows it and blinks. You can click and type: on the first key the sentence gives way to the letter you typed. Shuffle moves to the next typeface, a sans, a light serif and a condensed, and to the next background, out of twelve warm deep colours: the text comes back from a little below, the typeface name and the HEX code roll, the icon makes a full turn and the pill, which takes the colour of the type, swells under the pointer, gives under a press and springs back. If nobody touches, the specimen and the shuffles start again by themselves.

How it works

The specimen

A paused timeline with timeScale 1.5, as on the site: the letters of the name with autoAlpha from 0 to 1 in a thousandth of a second, 0.08 seconds apart; the arrow and the condensed letters from x −3rem in 0.8 seconds power2.out, 0.03 seconds apart; the serif words from y 3rem in 0.5 seconds, 0.15 apart; the whole block from y 20vh to 0 in 0.8 seconds power2.inOut, and the italic 0.35 seconds later.

Out in reverse

At the end the same list of elements, reversed, goes back to autoAlpha 0 in a thousandth of a second, 0.06 seconds apart: the words switch off as if typed backwards.

The sentence that types itself

A tween takes a number from 1 to 0 in 0.8 seconds sine.in, and on every update the first round(length × (1 − number)) characters are written, with the brand name inside an em. The drawn caret goes to the end of the text by measuring the last rectangle of the line with a Range.

Typing over it

The paragraph is contenteditable. On the first beforeinput the whole sentence is replaced by the key you typed, and the real caret goes to the end; while the text has focus the drawn one switches off.

Shuffle

The next of three typefaces (an attribute on the holder changes family, weight and spacing) and the next of twelve backgrounds, with the --bg and --ink variables animated by GSAP on the root; the text comes back with a fromTo from autoAlpha 0 and y 16 pixels in 0.6 seconds power2.out after 0.1, as on the site. The name and the HEX code roll inside a mask, the icon makes a full turn with back.out.

The pill

The pill’s background swells with back.out under the pointer and the label widens on the width axis of the typeface; on a press it all drops to 0.94 and springs back with elastic.out. It takes the colour of the type and writes in the colour of the background, so it inverts on every change.

Values to change

NameFileDefaultWhat it changes
SPEEDscript.js1.5Speed of the opening specimen (the site uses 1.5).
LETTER_GAPscript.js0.08Seconds between the letters of the name (the site uses 0.08).
LIFTscript.js20How far below the block starts, in vh (the site uses 20).
TYPE_TIMEscript.js0.8Seconds the sentence takes to type itself (the site uses 0.8).
SWAP_TIMEscript.js0.6Seconds the text takes to come back after Shuffle (the site uses 0.6).
RISEscript.js16How far below the text comes back from, in px (the site uses 1rem).
TOURscript.js2.8Seconds between shuffles when nobody touches.
SWELLscript.js1.08How much the pill swells under the pointer.

Try them in the Playground

When to use it

For the typography page of a brand book, a type foundry or a studio: the typeface is big, you can write your own line over it and change it with one button, and the opening specimen shows the three styles before handing over.

On phones

On a phone the text is sized on the height too, the brand subtitle goes away, the labels at the bottom tighten and the pill is a little smaller. You tap the sentence and type with the phone keyboard; the tour starts again after a few seconds.

With reduced motion

No moves: the specimen fades in and out, the sentence appears whole, on every Shuffle the text and the labels change with a fade, the icon stays still and the pill does not swell; the background fades as usual.

Pitfalls

  • The drawn caret is measured with a Range at the end of the text, and measured again on every letter, on every typeface change (the condensed is wider and taller) and on resize; with empty text the Range has no rectangles and the caret goes back to the start.
  • The colour of the type depends on the background: on the light ones, brass and sand, it switches to dark type from the luminance, otherwise the warm white is unreadable.
  • The pill animates the scale on the button, the swell on its background and the hop on the label: three different elements, so GSAP never writes two transforms on the same one.
  • In an iframe from another site focus cannot be given from a script without a gesture: that is why the caret blinking at the end of the sentence is drawn, and the real one arrives on the first click.

Libraries

GSAP 3.15.0, Bricolage Grotesque (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0, Archivo (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

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

Testing

Tested on 27 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 animations