
The liquid grid
Hover, Transitions
The website of a made-up letterpress studio, Corran Paper, with two pages in their own colours: Studio in paper white and Collection in ink blue, and a single vermilion accent. On a click the whole page folds in half along its middle like a greeting card: the free half turns over the other in 3D, darkening as it goes edge on, and on its back there is a solid cover in the colour of the next page, with the mark, the name and a pressed frame. The closed card lifts off the dark desk and slides to the centre, lands with a one pixel press, then opens again and it is already the new page. Going back folds from the other side.
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>
<!--
"Folding card 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 page transition that folds shut like a card and opens on the next page</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/bricolage-grotesque@5.3.0/standard.css">
<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>
<!-- two pages of a made-up letterpress studio, Corran Paper. A click folds the whole page in half along its middle,
like a greeting card: the free half swings over, its back is a cover in the colour of the next page, the closed
card lifts off the desk, and then it opens again on the next page. Going back folds the other way -->
<div class="pages" data-pages>
<section class="page page--home is-on" data-page="home" aria-label="Home">
<header class="top">
<a href="#" class="brand" data-go="home" aria-label="Corran Paper, home">
<svg class="mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4.2 4.4 6.4v12.2L12 20.8zM12 4.2l7.6 2.2v12.2L12 20.8"></path></svg>
<span class="brand__name">Corran<em>Paper</em></span>
</a>
<nav class="nav" aria-label="Main">
<a href="#" class="nav__item is-here" data-go="home" aria-current="page"><span>Studio</span></a>
<a href="#" class="nav__item" data-go="collection"><i class="peek" aria-hidden="true"><b></b><b></b></i><span>Collection</span></a>
</nav>
</header>
<div class="body">
<div class="text">
<p class="eyebrow" data-in>Letterpress studio, since 2014</p>
<h1 class="title"><span class="line"><span>Paper that</span></span><span class="line"><span>keeps its <i>crease</i></span></span></h1>
<p class="lede" data-in>Cards, suites and letterheads, pressed by hand on cotton stock in a small room in Bristol.</p>
<a href="#" class="pill" data-go="collection" data-in><span>See the collection</span>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.6 4.4 12.2 8l-3.6 3.6"></path></svg></a>
</div>
<figure class="sample" data-in aria-label="A folded sample card">
<span class="sample__l"></span><span class="sample__r"><svg class="mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4.2 4.4 6.4v12.2L12 20.8zM12 4.2l7.6 2.2v12.2L12 20.8"></path></svg></span>
<figcaption><b>600 gsm cotton</b><span>Two colours, hand set</span></figcaption>
</figure>
</div>
</section>
<section class="page page--collection" data-page="collection" aria-label="Collection" hidden>
<header class="top">
<a href="#" class="brand" data-go="home" aria-label="Corran Paper, home">
<svg class="mark" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4.2 4.4 6.4v12.2L12 20.8zM12 4.2l7.6 2.2v12.2L12 20.8"></path></svg>
<span class="brand__name">Corran<em>Paper</em></span>
</a>
<nav class="nav" aria-label="Main">
<a href="#" class="nav__item" data-go="home"><i class="peek" aria-hidden="true"><b></b><b></b></i><span>Studio</span></a>
<a href="#" class="nav__item is-here" data-go="collection" aria-current="page"><span>Collection</span></a>
</nav>
</header>
<div class="body">
<div class="text">
<p class="eyebrow" data-in>The autumn collection</p>
<h1 class="title"><span class="line"><span>Folded, pressed</span></span><span class="line"><span>and <i>sent</i></span></span></h1>
</div>
<ul class="list" data-in>
<li class="row"><b>Wedding suite</b><span>48 pieces</span><em>from £320</em></li>
<li class="row"><b>Thank you notes</b><span>Set of 12</span><em>£38</em></li>
<li class="row"><b>Letterhead</b><span>250 sheets</span><em>£96</em></li>
</ul>
</div>
</section>
</div>
<!-- the fold: made on every change from copies of the two pages -->
<div class="fold" data-fold aria-hidden="true">
<span class="fold__shadow" data-shadow></span>
<div class="fold__group" data-group>
<div class="half" data-half><div class="half__in" data-half-in></div><span class="half__shade" data-half-shade></span><span class="half__crease" data-crease></span></div>
<div class="flap" data-flap>
<div class="face face--front"><div class="half__in" data-front-in></div><span class="face__shade" data-front-shade></span></div>
<div class="face face--back">
<div class="cover" data-cover>
<span class="cover__frame"></span>
<svg class="mark cover__mark" viewBox="0 0 24 24"><path d="M12 4.2 4.4 6.4v12.2L12 20.8zM12 4.2l7.6 2.2v12.2L12 20.8"></path></svg>
<span class="cover__name"><span data-cover-name>Collection</span></span>
<i class="cover__rule" data-cover-rule></i>
<span class="cover__brand">Corran Paper</span>
</div>
<span class="face__shade" data-back-shade></span>
<span class="face__gloss" data-gloss></span>
</div>
</div>
</div>
</div>
<div class="grain" aria-hidden="true"></div>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.5l13 7.2-5.6 1.4-2.8 5.4z"></path></svg>
<p class="sr" aria-live="polite" data-live></p>
</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.
45 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 “Folding card transition” from Animorio and fit it into my siteOn the click the script clones the current page twice: one copy sits in the still half, the other on the front face of the turning half, moved back by half the window, so the two halves together make the whole page. The turning half has transform-style preserve-3d and two faces with backface-visibility hidden: on the back, turned by 180 degrees, there is the cover.
Going forward the right half folds, pivoting on its left edge, to rotateY(-180deg); going back the left one, pivoting on its right edge, to 180. A one pixel translateZ before the rotation keeps the turning half always above the still one when they lie on the same plane, with no flicker.
Everything is written on every frame from a single state (angle, closing, press): the dark veil of each face is the sine of the angle, so it is darkest when the half is edge on; on the still half falls a shadow starting from the fold, and a highlight passes over the back. Meanwhile the group shrinks by 10 % and slides by a quarter of the window, so the closed card sits in the middle of the desk.
When the half lands (a one pixel press on elastic.out) the new page goes under the cover: the real page changes, its texts hide and the two copies become copies of the new page. After 0.55 s the card opens again on back.out(1.3), which takes the half a little past flat and brings it back down.
Once the card is open the copies go away and the title rises line by line out of its mask on expo.out, the price list rows come in on a spring. The tiny card next to the menu item has the colour of the page it leads to and opens on hover; the sizes of the copies are read again on every frame, so a resize halfway through the fold breaks nothing.
| Name | File | Default | What it changes |
|---|---|---|---|
CLOSE_TIME | script.js | 0.95 | The seconds the free half takes to fold over the other. |
HOLD | script.js | 0.55 | The seconds the card stays closed, with the cover of the new page. |
OPEN_TIME | script.js | 1.05 | The seconds the card takes to open again. |
OPEN_OVERSHOOT | script.js | 1.3 | How far the half goes past flat as it opens (0 no bounce). |
LIFT | script.js | 0.1 | How much the closed card shrinks as it lifts off the desk. |
CENTRE | script.js | 1 | The closed card slides to the centre (1 on, 0 off). |
DEPTH | script.js | 1700 | The perspective of the fold (lower is deeper). |
SHADE | script.js | 0.5 | How much the paper darkens as it turns edge on. |
For the website of a design or print studio, a stationery shop, invitations, a portfolio or a landing page with a few pages in their own colours: when the page change should feel like a paper object, a card that closes and opens again on another page.
The same fold with adapted sizes: the brand name gets shorter, the title is sized on width and height, the sample card moves to the top right and the price list takes the full width; the closed card is a tall strip in the middle of the screen with the cover and the name.
No fold and no movement: the new page fades in over the old one and the texts light up without moving.
GSAP 3.15.0, Bricolage Grotesque (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.9 KB; the libraries: GSAP 28 KB.
Tested on 10 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.