
The liquid grid
Hover, Transitions
The inbox of Quillby, a made-up app: six clean emails with initials avatars, sender, subject, preview and time, the blue «New» pill on the unread ones. On click the list splits open like a slit right on that row: the rows above fold up into a stack of paper edges, the rows below fold down, and the message widens into the gap from the rectangle of the row; avatar, sender and subject fly to the head with Flip, the body comes in line by line and Reply, Forward and Archive arrive. Back is the same gesture in reverse; Archive throws the message out to the right, the tray takes it and the list closes on a spring, with Undo to bring it back. On warm white, a single blue.
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>
<!--
"Inbox slit transition" 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 inbox that opens like a slit</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" data-stage>
<!-- the inbox of a made-up mail app, Quillby. A click on a row splits the list open on that row like a slit:
the rows above fold up into a thin stack of paper edges, the rows below fold down, and the message opens in
the gap; avatar, sender and subject fly to the head (Flip). Archive throws the message out and the list
closes on a spring; Undo brings it back -->
<section class="app" data-app aria-label="Quillby inbox">
<span class="app__rim" aria-hidden="true"></span>
<header class="bar">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 22 22" aria-hidden="true">
<rect x="0.75" y="0.75" width="20.5" height="20.5" rx="6.5"/>
<path d="M5.6 8.2 11 12.1l5.4-3.9"/>
<path d="M5.6 7.4v7.4h10.8V7.4"/>
</svg>
<span class="brand__name">Quillby</span>
</span>
<span class="bar__title">Inbox</span>
<span class="bar__right">
<span class="count" aria-live="off"><span class="count__win"><span class="count__n" data-count>3</span></span><span class="count__w">new</span></span>
<span class="tray" data-tray aria-label="Archive">
<svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.6" y="3.4" width="14.8" height="3.8" rx="1.2"/><path d="M4 7.2v7.6a1.6 1.6 0 0 0 1.6 1.6h8.8a1.6 1.6 0 0 0 1.6-1.6V7.2M8 10.4h4"/></svg>
<span class="tray__n" data-tray-n>0</span>
</span>
</span>
</header>
<div class="list" data-list role="list">
<span class="sheet-shadow" data-shadow aria-hidden="true"></span>
<article class="sheet" data-sheet aria-hidden="true">
<div class="sheet__top" data-s-top>
<button class="back" type="button" data-back>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.8 3.4 5.2 8l4.6 4.6"/></svg>
<span>Inbox</span>
</button>
<span class="sheet__when" data-s-when></span>
</div>
<div class="sheet__from">
<span class="avatar avatar--big" data-s-avatar><span data-s-initials></span></span>
<span class="from">
<span class="sender sender--big" data-s-sender></span>
<span class="addr" data-s-addr></span>
</span>
</div>
<h2 class="subject subject--big" data-s-subject></h2>
<div class="sheet__body" data-s-body></div>
<div class="actions" data-s-actions>
<button class="act act--main" type="button" data-reply>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6.4 4 2.8 7.4l3.6 3.4"/><path d="M3.2 7.4h5.6c2.6 0 4.4 1.6 4.4 4.4"/></svg>
<span class="act__t">Reply</span>
</button>
<button class="act" type="button" data-forward>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.6 4l3.6 3.4-3.6 3.4"/><path d="M12.8 7.4H7.2c-2.6 0-4.4 1.6-4.4 4.4"/></svg>
<span class="act__t">Forward</span>
</button>
<button class="act" type="button" data-archive>
<svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2" y="2.8" width="12" height="3" rx="1"/><path d="M3.2 5.8v6.4a1.3 1.3 0 0 0 1.3 1.3h7a1.3 1.3 0 0 0 1.3-1.3V5.8M6.5 8.4h3"/></svg>
<span class="act__t">Archive</span>
</button>
</div>
</article>
</div>
<div class="toast" data-toast role="status">
<span class="toast__t">Conversation archived</span>
<button class="toast__undo" type="button" data-undo>Undo</button>
</div>
</section>
<svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/Flip.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.
33 values to change
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 “Inbox slit transition” from Animorio and fit it into my siteThe rows are absolute in the list and each sits at y = slot x row height, measured from the CSS (clamp(48px, 11vh, 66px)). So opening, closing, archiving and undoing are only tweens of y, and the button inside the row stays free for the CSS states (hover, press).
Opening row k, each row above goes to y = (slot + 1) x 5 - height, stacked with the z-index reversed, so only its last five pixels show; the rows below go to y = list height - (rows - slot) x 5. The further they are the more they narrow (scaleX) and fade, and their words go out: paper edges remain.
The page of the message is placed at once at its final size, between the two stacks, and uncovered by an inset clip-path that starts from the rectangle of the row and opens in 0.8 s (expo.out), with a separate shadow following it (the clip would cut its own). Since the page does not move, the pieces inside can fly without moving twice.
Avatar, sender and subject of the page are laid over those of the row with Flip.fit(piece, rowPiece, { scale: true }) and then go back to x, y 0 and scale 1. They are as wide as their text (width: max-content), so the scale is the same in width and height and the letters do not squash. Back uses Flip.fit with a duration, towards the row.
The address and the lines of the body rise 8 px, 0.07 s apart, the actions arrive on back.out(1.8). On closing, every row goes back to its place, one pixel past it, and settles; the preview of the row comes back only once the page is gone.
Archive takes the row out of the order, shrinks the page to 0.975 and throws it right with a 4 degree turn (power3.in); meanwhile the remaining rows go to their new places on back.out(1.6), the spring, and the tray jumps on elastic.out. Undo puts the row back in the order, moves the ones below down and slides it in from the right. The pointer that plays by itself is a GSAP timeline calling the same functions.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN_TIME | script.js | 0.8 | Seconds the slit takes to open and the message to fill the gap. |
CLOSE_TIME | script.js | 0.7 | Seconds the message takes to fold back into its row. |
SLIVER | script.js | 5 | Pixels of each folded row left showing above and below the message. |
ROW_STAGGER | script.js | 0.035 | Seconds between one folding row and the next, nearest first. |
LINE_STAGGER | script.js | 0.07 | Seconds between one line of the body and the next. |
SPRING | script.js | 1.6 | How far the list overshoots closing after Archive (0 for no spring). |
FLY_TIME | script.js | 0.55 | Seconds the archived message takes to fly out. |
IDLE | script.js | 5 | Seconds after the last touch before the pointer starts again by itself. |
LOOP | script.js | true | Left alone, it opens, goes back, opens another one and archives it, again and again. |
For any app with a list and a detail page: mail, messages, support tickets, notifications, orders, bookings, notes. The slit keeps in sight where you were in the list, and Archive with Undo is the gentle way to remove something.
The same animation with adapted sizes: the window is measured on width and height (min(460px, 94vw), min(560px, 92vh)), the rows with clamp in vh, the words in vmin; at every resize rows, page and clip go back to their place. A finger taps a row, Back, Archive and Undo.
No moving rows and no flying pieces: the message fades in and out over the list, Archive and Undo fade the list and bring it back already in order. No pointer on its own.
GSAP 3.15.0, GSAP Flip 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + Flip 37 KB.
Tested on 13 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
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.