
Falling tools
Physics, Hover
A phone wallet with four event tickets stacked, only the top of each one showing: tapped or pulled up, a ticket comes out of the stack on a spring, the others drop into a little pile at the bottom and the barcode draws itself and lights up, ready for the door. Pulled down past the line, or with the pile tapped, it goes back in its place. In the style of product micro-interactions, one gesture only: Drag.
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>
<!--
"Wallet event tickets" 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 event tickets you pull out of the wallet</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>
<!-- a wallet of event tickets: tap or pull one up and it comes out of the stack while the others drop into a
pile at the bottom; pull it down past the line, or tap the pile, and it goes back -->
<section class="wallet" data-wallet aria-label="Wallet">
<header class="wallet__head">
<div>
<p class="wallet__title">Wallet</p>
<p class="wallet__sub" data-sub>4 passes</p>
</div>
<button class="wallet__done" type="button" data-done>Done</button>
</header>
<div class="deck" data-deck>
<article class="t" data-ticket>
<div class="t__shadow"></div>
<div class="t__card">
<div class="t__head">
<div><p class="t__name">Halden Quartet</p><p class="t__kind">Concert</p></div>
<div class="t__when"><p class="t__date">Fri 14 Nov</p><p class="t__time">20:00</p></div>
</div>
<p class="t__venue">Marrow Hall, Leeds</p>
<dl class="t__grid">
<div><dt>Gate</dt><dd>B</dd></div>
<div><dt>Row</dt><dd>12</dd></div>
<div><dt>Seat</dt><dd class="is-accent">31</dd></div>
<div><dt>Doors</dt><dd>19:15</dd></div>
</dl>
<div class="t__perf" aria-hidden="true"></div>
<div class="t__code" data-code>
<svg class="t__bars" data-bars viewBox="0 0 200 40" preserveAspectRatio="none" aria-hidden="true"></svg>
<p class="t__num">4821 0093 1174</p>
<p class="t__ready" data-ready>Ready to scan</p>
</div>
<div class="t__shine" aria-hidden="true"></div>
</div>
</article>
<article class="t" data-ticket>
<div class="t__shadow"></div>
<div class="t__card">
<div class="t__head">
<div><p class="t__name">Nightjar</p><p class="t__kind">Live, late show</p></div>
<div class="t__when"><p class="t__date">Sat 22 Nov</p><p class="t__time">21:30</p></div>
</div>
<p class="t__venue">The Lantern Rooms, Bristol</p>
<dl class="t__grid">
<div><dt>Door</dt><dd>2</dd></div>
<div><dt>Area</dt><dd>Floor</dd></div>
<div><dt>Entry</dt><dd class="is-accent">Standing</dd></div>
<div><dt>Age</dt><dd>18+</dd></div>
</dl>
<div class="t__perf" aria-hidden="true"></div>
<div class="t__code" data-code>
<svg class="t__bars" data-bars viewBox="0 0 200 40" preserveAspectRatio="none" aria-hidden="true"></svg>
<p class="t__num">7730 5512 0468</p>
<p class="t__ready" data-ready>Ready to scan</p>
</div>
<div class="t__shine" aria-hidden="true"></div>
</div>
</article>
<article class="t" data-ticket>
<div class="t__shadow"></div>
<div class="t__card">
<div class="t__head">
<div><p class="t__name">Copper Field</p><p class="t__kind">Festival, day pass</p></div>
<div class="t__when"><p class="t__date">Sun 30 Nov</p><p class="t__time">11:00</p></div>
</div>
<p class="t__venue">Riverside Meadows, York</p>
<dl class="t__grid">
<div><dt>Gate</dt><dd>North</dd></div>
<div><dt>Pass</dt><dd>Day</dd></div>
<div><dt>Band</dt><dd class="is-accent">Copper</dd></div>
<div><dt>Last in</dt><dd>18:00</dd></div>
</dl>
<div class="t__perf" aria-hidden="true"></div>
<div class="t__code" data-code>
<svg class="t__bars" data-bars viewBox="0 0 200 40" preserveAspectRatio="none" aria-hidden="true"></svg>
<p class="t__num">3069 8841 2257</p>
<p class="t__ready" data-ready>Ready to scan</p>
</div>
<div class="t__shine" aria-hidden="true"></div>
</div>
</article>
<article class="t" data-ticket>
<div class="t__shadow"></div>
<div class="t__card">
<div class="t__head">
<div><p class="t__name">Lumen Talks</p><p class="t__kind">Design evening</p></div>
<div class="t__when"><p class="t__date">Thu 4 Dec</p><p class="t__time">19:00</p></div>
</div>
<p class="t__venue">Pier 9 Auditorium, Brighton</p>
<dl class="t__grid">
<div><dt>Hall</dt><dd>A</dd></div>
<div><dt>Row</dt><dd>C</dd></div>
<div><dt>Seat</dt><dd class="is-accent">8</dd></div>
<div><dt>Doors</dt><dd>18:30</dd></div>
</dl>
<div class="t__perf" aria-hidden="true"></div>
<div class="t__code" data-code>
<svg class="t__bars" data-bars viewBox="0 0 200 40" preserveAspectRatio="none" aria-hidden="true"></svg>
<p class="t__num">5106 2287 9930</p>
<p class="t__ready" data-ready>Ready to scan</p>
</div>
<div class="t__shine" aria-hidden="true"></div>
</div>
</article>
</div>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
</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.
77 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 “Wallet event tickets” from Animorio and fit it into my siteThe wallet has container-type size and a fixed ratio: everything inside, from the tickets to the text to the half-moons of the perforation, is measured in cqh, so it shrinks as one piece. The half-moons are two radial-gradients in the ticket’s mask, intersected.
Each ticket has a position, a speed and a target; a damped spring, integrated in four steps per frame in GSAP’s ticker, takes it there. Opening or closing only changes the targets, with a small delay for each one: that is what makes the pile drop in a row.
In the stack a ticket pulled up follows the finger through a rubber band curve, and the ones below follow it a little less each; let go, it comes out if it went up more than LIFT or was moving up fast. Open, it pulls down freely and up on a short rubber band: past DROP or with a quick flick it goes back in the stack, with the finger’s speed.
The spring’s speed becomes a tilt of a few degrees around the horizontal axis, inside a perspective: the shine, a gradient in screen mode, slides with the tilt, and the shadow, blurred and separate from the ticket, moves away and spreads the more the ticket is lifted.
Once the ticket has arrived, the barcode’s bars grow from the left with a scaleX, the panel turns full white with a glow, and Ready to scan rises by five pixels with a back.out. Closing puts everything back, ready for the next one.
| Name | File | Default | What it changes |
|---|---|---|---|
SPRING | script.js | 1 | How stiff the tickets’ spring is: higher is snappier. |
BOUNCE | script.js | 0.18 | How much the tickets bounce when they land. |
STRIP | script.js | 0.1 | How much of each ticket shows in the stack. |
LIFT | script.js | 0.04 | How far a ticket must be pulled up to come out of the stack. |
DROP | script.js | 0.2 | How far the open ticket must be pulled down to go back in the stack. |
ACCENT | script.js | #ff6a3d | The colour of the seat and of Ready to scan. |
HOLD | script.js | 1.2 | The seconds of pause before the autopilot starts again. |
For the app or site of a ticket seller, a festival, a theatre or a concert hall, to show the tickets bought and ready for the door, or as a piece of a prototype: it is the gesture of the phone wallet, with physics you can feel.
The same animation with adapted sizes: the wallet is sized on the height and the width of the window and everything inside follows it; the tickets are pulled out and put back with your finger.
No springs and no tilt: the tickets go from the stack to the open ticket and back with a fade, the barcode is already drawn and Ready to scan fades in.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.0 KB; the libraries: GSAP 28 KB.
Tested on 26 October 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.