
Speeding marquee
Scroll, Text, Hover
A minimal hover animation: the save the date of a wedding, a thick cotton paper card with grain and a deckled edge, covered by a sheet of tissue paper. On hover the tissue lifts from a corner and folds away, with light on the crease and a shadow that grows; underneath, the couple's names in a variable serif gain weight and the date, first only blind pressed, gets its gold foil with a small press. The gold's highlight follows the pointer.
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>
<!--
"Save the date invite" 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>Save the date invite</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full-italic.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>
<!-- a thick cotton paper save the date card with a deckled edge, under a sheet of translucent tissue.
On hover (or a tap) the tissue lifts from the bottom right corner and folds away, and the date is pressed in gold foil -->
<div class="invite" data-invite>
<div class="invite__lift" data-lift>
<span class="invite__edge" data-deckle aria-hidden="true"></span>
<article class="invite__paper" data-deckle>
<svg class="mono" viewBox="0 0 60 60" aria-hidden="true">
<circle class="mono__ring" data-ring cx="30" cy="30" r="27" pathLength="1"/>
<circle class="mono__ring mono__ring--in" data-ring cx="30" cy="30" r="24.6" pathLength="1"/>
<text class="mono__l" x="23.4" y="36.2" text-anchor="middle">N</text>
<path class="mono__stroke" data-ring pathLength="1" d="M29.8 41.6L31.4 18.2"/>
<text class="mono__l mono__l--it" x="37" y="38.6" text-anchor="middle">I</text>
</svg>
<p class="eyebrow">Save the date</p>
<h1 class="names" data-names><span>Noemi</span><span class="names__amp">&</span><span>Ilario</span></h1>
<p class="intro">are getting married</p>
<div class="date" data-date>
<p class="date__row date__row--blind"><span>18</span><i></i><span>09</span><i></i><span>2027</span></p>
<p class="date__row date__row--foil" data-foil aria-hidden="true"><span>18</span><i></i><span>09</span><i></i><span>2027</span></p>
</div>
<p class="place">Villa Ardesca, Lake Como</p>
<span class="rule" aria-hidden="true"></span>
<p class="rsvp">RSVP by 1 June 2027</p>
</article>
<div class="tissue" data-tissue aria-hidden="true">
<div class="tissue__flat" data-flat><span class="tissue__shade" data-shade></span></div>
<div class="tissue__castwrap" data-castwrap><div class="tissue__cast" data-cast></div></div>
<div class="tissue__flap" data-flap><span class="tissue__sheen" data-sheen></span></div>
</div>
</div>
</div>
<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.
31 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 “Save the date invite” from Animorio and fit it into my siteThe card is cut with a polygon clip-path: one point every 2.2 px along the four sides, pushed inwards by three sines with random phases plus a little noise. The same polygon, moved 2 px down and darker, makes the thickness; three drop-shadows on the container make the contact shadow, which follows the torn edge. It is rebuilt on every resize.
The tissue's corner heads for a point P. The crease is the bisector between the corner and P: the lying part is the rectangle cut by that line (Sutherland-Hodgman on four vertices), the flap is the same sheet reflected across the line with a CSS matrix() and clipped on the other side. No 3D needed.
Inside the flap and the lying part sits a large band, placed on the crease and turned like it: light on the flap, dark and short on the lying sheet. The flap's shadow is a dark copy of it, moved and blurred, going further and softer the higher the sheet rises.
The fold's progress is a spring integrated by hand in GSAP's ticker. Below zero the tissue would go through the card: there the velocity flips at 28%, hence the tiny bounce as it lands. At rest the target sways a little: the tissue breathes.
The date is there twice: underneath blind pressed (paper coloured with a shadow above and a light below), on top in gold with a gradient clipped to the text. A timeline opens the gold's clip-path from the left while the date gives by 1.4% and comes back a hair past; the gradient's bright band is a CSS variable following the pointer.
| Name | File | Default | What it changes |
|---|---|---|---|
STIFFNESS | script.js | 46 | The spring that lifts and lays the tissue: higher is quicker. |
DAMPING | script.js | 11 | Lower lets the tissue swing before it settles. |
BREATH | script.js | 1 | How much the tissue's corner breathes at rest (0 = still). |
TISSUE | script.js | 0.6 | How milky the tissue is: 0.3 almost clear, 0.85 almost opaque. |
SHEEN | script.js | 1 | How far the gold's highlight follows the pointer. |
HOLD | script.js | 3.4 | Seconds the invitation stays uncovered when it plays on its own. |
LOOP | script.js | true | Lifts and lays the tissue on its own, again and again. |
For a couple's wedding website, a wedding planner's page or a stationery studio that prints invitations: the save the date to show first, or a card for the invitation designs in a catalogue.
The same animation with adapted sizes: the card is sized on height and width together, the text grows with it (cqw units), and with a finger one tap lifts the tissue and another lays it back.
The tissue does not fold: it fades out and back in, and the date's foil fades in without the press.
GSAP 3.15.0, Fraunces (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.6 KB; the libraries: GSAP 28 KB.
Tested on 17 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.