
The inchworm menu
Menus, Hover, Transitions
The daily reading of a wellbeing app, on white: three cards face down with a fine indigo hatch on the back, Past, Present and Future, that turn over one at a time in 3D on a spring, rising and widening their shadow; on the front the card’s name in an italic serif and a thin-line symbol that draws itself. Once all three are up, the line of the day arrives word by word below. Draw again turns them back, gathers them, shuffles twice and deals them again.
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>
<!--
"Daily tarot pull" 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>Daily tarot pull</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz-italic.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the daily reading of a wellbeing app: three cards face down, turned one at a time on a spring,
then the line of the day arrives word by word; Draw again gathers, shuffles and deals them anew -->
<section class="reading" data-reading aria-label="Today’s reading">
<header class="reading__head">
<p class="reading__title">Today’s reading</p>
<p class="reading__date" data-date>Wed, Nov 25</p>
</header>
<div class="spread" data-spread>
<div class="slot" data-slot>
<button class="card" type="button" data-card aria-label="Turn the Past card">
<span class="card__shadow" data-shadow aria-hidden="true"></span>
<span class="card__lift" data-lift>
<span class="card__inner" data-inner>
<span class="face face--back" aria-hidden="true">
<span class="face__hatch"></span>
<svg class="face__mark" viewBox="0 0 40 40"><path d="M20 4 L36 20 L20 36 L4 20 Z"/><path d="M20 12 L28 20 L20 28 L12 20 Z"/><circle cx="20" cy="20" r="2.2"/></svg>
<span class="face__sheen" data-sheen></span>
</span>
<span class="face face--front">
<svg class="face__symbol" viewBox="0 0 48 48" aria-hidden="true"><g data-symbol></g></svg>
<span class="face__name" data-name>The Sun</span>
<span class="face__word" data-word>clarity</span>
</span>
</span>
</span>
</button>
<span class="slot__label">Past</span>
</div>
<div class="slot" data-slot>
<button class="card" type="button" data-card aria-label="Turn the Present card">
<span class="card__shadow" data-shadow aria-hidden="true"></span>
<span class="card__lift" data-lift>
<span class="card__inner" data-inner>
<span class="face face--back" aria-hidden="true">
<span class="face__hatch"></span>
<svg class="face__mark" viewBox="0 0 40 40"><path d="M20 4 L36 20 L20 36 L4 20 Z"/><path d="M20 12 L28 20 L20 28 L12 20 Z"/><circle cx="20" cy="20" r="2.2"/></svg>
<span class="face__sheen" data-sheen></span>
</span>
<span class="face face--front">
<svg class="face__symbol" viewBox="0 0 48 48" aria-hidden="true"><g data-symbol></g></svg>
<span class="face__name" data-name>The Moon</span>
<span class="face__word" data-word>intuition</span>
</span>
</span>
</span>
</button>
<span class="slot__label">Present</span>
</div>
<div class="slot" data-slot>
<button class="card" type="button" data-card aria-label="Turn the Future card">
<span class="card__shadow" data-shadow aria-hidden="true"></span>
<span class="card__lift" data-lift>
<span class="card__inner" data-inner>
<span class="face face--back" aria-hidden="true">
<span class="face__hatch"></span>
<svg class="face__mark" viewBox="0 0 40 40"><path d="M20 4 L36 20 L20 36 L4 20 Z"/><path d="M20 12 L28 20 L20 28 L12 20 Z"/><circle cx="20" cy="20" r="2.2"/></svg>
<span class="face__sheen" data-sheen></span>
</span>
<span class="face face--front">
<svg class="face__symbol" viewBox="0 0 48 48" aria-hidden="true"><g data-symbol></g></svg>
<span class="face__name" data-name>The Hermit</span>
<span class="face__word" data-word>solitude</span>
</span>
</span>
</span>
</button>
<span class="slot__label">Future</span>
</div>
</div>
<p class="line" data-line aria-live="polite"><span class="line__hint" data-hint>Turn the cards, one at a time.</span></p>
<button class="again" type="button" data-again>
<svg class="again__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 6h3.2c1.6 0 2.6.7 3.5 2l1.6 2.4c.9 1.3 1.9 2 3.5 2H17"/><path d="M14.6 10.2 17 12.6l-2.4 2.4"/><path d="M3 14h3.2c1 0 1.8-.3 2.4-.9"/><path d="M11.4 6.9c.6-.6 1.4-.9 2.4-.9H17"/><path d="M14.6 3.6 17 6l-2.4 2.4"/></svg>
<span class="again__label">Draw again</span>
</button>
</section>
</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.
28 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 “Daily tarot pull” from Animorio and fit it into my siteThe button holds the perspective, inside sit the layer that rises (card__lift) and the one that turns (card__inner), both with transform-style: preserve-3d; the two faces have backface-visibility: hidden and the front is already turned 180 degrees in the CSS. GSAP only animates the layers, never the faces.
rotationY from 0 to 180 with back.out(1.6): the card goes a few degrees past flat and comes back. At the same time the layer above rises 9% and grows to 1.05, then drops back with elastic.out, and the blurred shadow below widens and lightens.
The symbol is a small line svg: the script gives each element pathLength 1 and stroke-dashoffset 1, and on the turn takes it to 0, 0.05 seconds apart. autoRound is turned off at the top of the script, so the lines really draw.
Once the three cards are up, the line is built from the past line of the first, the present of the second and the future of the third; each word is a span rising from yPercent 55 and blur(4px), 0.045 seconds apart. The word between asterisks becomes indigo italic.
Draw again measures with getBoundingClientRect how far each card has to travel to reach the middle one, takes them there with a small rotation, then slides one card out sideways twice changing its z-index halfway, and deals them again with back.out. The draws follow a fixed order, so the reading is always the same when the page opens.
| Name | File | Default | What it changes |
|---|---|---|---|
FLIP_TIME | script.js | 0.95 | The seconds a card takes to turn over. |
OVERSHOOT | script.js | 1.6 | How far the card swings past flat before it settles (0 = no swing). |
LIFT | script.js | 9 | How high the card rises while it turns, in % of its height. |
DEAL_GAP | script.js | 0.6 | The seconds between one card and the next when the reading turns itself. |
WORD_GAP | script.js | 0.045 | The seconds between the words of the line of the day. |
LOOP_PAUSE | script.js | 3.4 | The seconds the reading stays open before it reshuffles by itself. |
HINT | script.js | Turn the cards, one at a time. | The line shown while the cards are face down. |
--accento | style.css | #3e3a8f | The one accent colour: the card backs, the symbols, the keyword and the present’s word. |
In a wellbeing, meditation, astrology or horoscope app or site: the card or reading of the day, a morning ritual, a ‘your day’ section, or a newsletter that gives one line a day.
Everything is in em and the size depends on both the width and the height of the window, so the three cards, the line and the button fit in the phone box. A tap does what a click does; the hover sheen is only there with a mouse. Below 360 pixels the date hides.
No 3D turns or springs: the card fades out and back with its front already drawn, the words of the line fade in and Draw again swaps the cards with a fade, without gathering or shuffling them.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Newsreader (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.5 KB; the libraries: GSAP 28 KB.
Tested on 25 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.