Skip to content
animorio
IT
Back to the library

Fashion dictionary

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

The dictionary of an invented fashion house: five new words, each one a card with its light colour, its dark border and a hard stamped shadow that flattens as you pass over it. The card rises from the edge, the transcription writes itself, the round button springs in and, when pressed, the plus becomes a minus and the entry unfolds with its etymology and its two meanings. A minimal style, as an accordion.

Rebuilt from scratch studying thejacketcirclegame.maxmara.com by Adoratorio Studio: 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>
<!--
  "Fashion dictionary" 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 fashion dictionary entries that rise and unfold like an accordion</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/libre-baskerville@5.3.0/400.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/libre-baskerville@5.3.0/400-italic.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the dictionary of Ardelle, an invented coat house: five words of its own, each with its colours -->
  <main class="pagina" data-stage>
    <div class="colonna">
      <span class="cornice" data-inquadra aria-hidden="true"></span>
      <header class="testata">
        <p class="marchio">ARDELLE</p>
        <p class="sottotitolo">The Ardelle Dictionary</p>
      </header>

      <nav class="linguette" data-tabs aria-label="Choose a word"></nav>

      <div class="maschera">
        <article class="voce" data-entry aria-live="polite"></article>
      </div>
    </div>

    <svg class="puntatore" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13.5 7.4-6 1.6-2.4 5.9z" /></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.

14 values to change

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 “Fashion dictionary” 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 name of the house, ARDELLE, and below it, in italics, The Ardelle Dictionary; then five small squares with the initial of five invented words, each in its word’s colour. Below them the card of the first word, Windwearing, rises from its edge: a light background, a double dark border and a hard shadow offset by four pixels, like a stamp. Once there it lifts by a pixel and settles; meanwhile the rule under the title stretches from the left, the phonetic transcription writes itself letter by letter behind a thin caret, then “— noun” appears, and the round button with the plus springs in. Passing over them, the shadow of the card and of the button flattens and the piece looks pressed into the page. Pressing the button the vertical line of the plus closes into a minus and the entry unfolds: the etymology with its two roots in italics, marked by a veil of their colour, and the two meanings, parted by a thin dash. Choosing another square the card drops away, the page takes the tint of the new word and the new card rises. A drawn pointer opens an entry, leaves it to be read and moves on to the next word, until you touch it.

How it works

The card rising from the edge

The card sits inside a mask with hidden overflow and starts at yPercent 110: it rises to 0 in 1.25 seconds with power3.out, like the dictionary entry on the site. At the end it goes up a pixel and back down in 0.4 seconds: the settle that makes it look laid down. The mask has a margin on the right and at the bottom so the stamped shadow is not cut.

The stamped shadow

It is not a box-shadow but a filter: drop-shadow(4px 4px 0 …), a solid shadow with no blur that also follows the double border. On hover it becomes drop-shadow(0 0 0 transparent) in 0.5 seconds with cubic-bezier(.215,.61,.355,1); the hover lives inside @media (hover: hover), and the drawn pointer uses a class with the same effect.

The plus that becomes a minus

The button comes in from scale 0 with elastic.out(1, 1). The sign is an SVG of two strokes: when pressed, the vertical one goes to scaleY 0 in 0.75 seconds and the minus is left. The body of the entry goes from height 0 to auto in one second with power2.out, the same curve as the CSS cubic-bezier(.215,.61,.355,1); the lines inside rise ten pixels one after the other.

The transcription that writes itself

Each character of the transcription is a span that starts with display none: a zero-length tween with a stagger switches them on one every 35 milliseconds, so the thin caret that follows moves along the line by itself. The roots of the etymology are marked with a background-size going from 0 to 100% on the --segno variable.

Changing word

Every word has its pair of colours, light and dark; the page background is the light one mixed with 7% of the dark, worked out in the script. The card drops to yPercent 110 in half a second, is rewritten with the new word, the page changes tint in 0.8 seconds and the new card rises.

Values to change

NameFileDefaultWhat it changes
RISEscript.js1.25How many seconds the card takes to rise from the edge.
LEAVEscript.js0.5How many seconds the card takes to drop away when you change word.
OPENscript.js1How many seconds the entry takes to unfold or fold.
SIGNscript.js0.75How many seconds the plus takes to become a minus.
TYPEscript.js0.035Seconds per letter of the transcription that writes itself.
SHADOWscript.js4How many pixels the stamped shadow is offset.
TINTscript.js0.8How many seconds the page takes to change tint.
HOLDscript.js2.6How many seconds the drawn pointer leaves an entry open.
IDLEscript.js8After how many quiet seconds the drawn pointer starts again.

Try them in the Playground

When to use it

For the site of a fashion house, a clothing brand or a magazine that wants to tell a collection through words: a glossary, a brand lexicon, the entries of a guide, frequently asked questions with more character. It also works as an accordion for any text that opens on request.

On phones

The same animation: card, squares and type are sized on both the width and the height of the box, the open entry stays fully on screen and the button and the squares are pressed with a finger, with the shadow flattening.

With reduced motion

Nothing rises and nothing bounces: the cards fade in with the transcription already written, the entry opens already in place and its lines fade in, the page changes tint at once.

Pitfalls

  • A stamped shadow made with box-shadow only sits around the outer border: filter drop-shadow follows the real shape of the piece, but a filter creates a new context, so it goes on a container and not on the element GSAP moves.
  • The card rises from under a mask with hidden overflow: without a little margin on the right and at the bottom, the four-pixel shadow would be cut off.
  • The mixed colours (page background, tinted shadow) are worked out in the script: color-mix does not show in every capture.

Libraries

GSAP 3.15.0, Libre Baskerville 5.3.0, Inter (font variabile) 5.3.0.

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

Testing

Tested on 28 October 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