Skip to content
animorio
IT
Back to the library

Save the date invite

Hover, TextGSAP, CSS onlyMediumCompressed weight: Demo 7.6 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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">&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>

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.

31 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 “Save the date invite” 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

On a sand coloured table, with a soft light in the middle, lies a thick invitation card of cotton paper with grain and a deckled edge like one torn by hand; its thickness shows underneath and a warm contact shadow sits around it. On top is a sheet of tissue paper a little smaller, milky: it lets you glimpse, blurred, the monogram, ‘Save the date’, the names ‘Noemi & Ilario’ and the rest. At rest the tissue breathes: the bottom right corner lifts by a breath and falls back. When the pointer passes, the corner rises and the tissue folds over itself along a crease that crosses the sheet diagonally and turns a little as it climbs: the folded part catches light on the crease, the part still lying darkens just behind it, and underneath falls a shadow that widens and softens the higher the sheet goes; then the tissue leaves past the top left corner and disappears. With the invitation uncovered, the names in a variable serif gain a little weight, and the date ‘18 / 09 / 2027’, first only blind pressed into the paper, gets its gold foil from left to right with a small press that gives, comes back a hair past and settles. The foil's highlight slides with the pointer. When the pointer leaves, the tissue comes back down on a spring and touches the paper with a tiny bounce; the gold goes out beneath it. On its own, the tissue lifts and returns about every nine seconds.

How it works

The deckled edge

The 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 fold is a reflection

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.

Light and shade of the fold

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.

A spring that cannot pass the paper

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 foil laid down

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.

Values to change

NameFileDefaultWhat it changes
STIFFNESSscript.js46The spring that lifts and lays the tissue: higher is quicker.
DAMPINGscript.js11Lower lets the tissue swing before it settles.
BREATHscript.js1How much the tissue's corner breathes at rest (0 = still).
TISSUEscript.js0.6How milky the tissue is: 0.3 almost clear, 0.85 almost opaque.
SHEENscript.js1How far the gold's highlight follows the pointer.
HOLDscript.js3.4Seconds the invitation stays uncovered when it plays on its own.
LOOPscript.jstrueLifts and lays the tissue on its own, again and again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

The tissue does not fold: it fades out and back in, and the date's foil fades in without the press.

Pitfalls

  • clip-path also cuts the box-shadow: the deckled edge only gets its shadow from a drop-shadow on the parent, which follows the already clipped shape.
  • A filter on the parent becomes the backdrop-filter root: here that helps, the tissue blurs exactly the card; but an element with its own filter inside would blur nothing.
  • A filter is applied before clip-path: the flap's blurred shadow has to live in a wrapper with the blur and the clip on the child, or the blur gets cut.
  • The flap's shadow under a semi transparent sheet makes it look grey: keep it light.

Libraries

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.

Testing

Tested on 17 November 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