
The inchworm menu
Menus, Hover, Transitions
The digital ticket of an invented concert, Night Swim by Lowtide Choir at Halcyon Hall, on black: a holographic foil engraved with a guilloche lights up only where the pointer’s light falls, and with it the title, the round seal and the 1px rim. At the bottom the doors countdown ticks down digit by digit. Show code turns the card on a spring: the back is bright like a phone ready for the scanner and the entry code is live, a holographic band runs over it and every few seconds it renews itself in a diagonal wave.
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>
<!--
"Concert ticket QR card" 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 concert ticket card with the QR entry code that renews on the back</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 digital ticket of an invented concert, Night Swim by Lowtide Choir at Halcyon Hall: a holographic foil that
catches the light under the pointer, the doors countdown, and on the back a live entry code that renews itself -->
<div class="ticket" data-ticket>
<span class="ticket__glow" aria-hidden="true" data-glow></span>
<div class="ticket__tilt" data-tilt>
<div class="ticket__flip" data-flip>
<section class="face face--front" data-front aria-label="Night Swim ticket">
<span class="face__holo" aria-hidden="true"></span>
<span class="face__glare" aria-hidden="true"></span>
<span class="face__rim" aria-hidden="true"></span>
<header class="front__top">
<span class="front__venue">Halcyon Hall</span>
<span class="front__admit">Admit one</span>
</header>
<div class="front__title">
<span class="seal" aria-hidden="true">
<svg viewBox="0 0 40 40">
<circle class="seal__ring" cx="20" cy="20" r="18.5"/>
<circle class="seal__ring seal__ring--in" cx="20" cy="20" r="13"/>
<path class="seal__wave" d="M9 21.5c2.2-2.4 4.4-2.4 6.6 0s4.4 2.4 6.6 0 4.4-2.4 6.6 0 2.2 1.2 2.2 1.2"/>
<path class="seal__wave" d="M11 16.5c1.8-2 3.6-2 5.4 0s3.6 2 5.4 0 3.6-2 5.4 0"/>
</svg>
</span>
<h2 class="front__show">Night Swim</h2>
<p class="front__artist">Lowtide Choir · Live</p>
</div>
<dl class="facts">
<div><dt>Date</dt><dd>Sat 14 Nov</dd></div>
<div><dt>Doors</dt><dd>19:30</dd></div>
<div><dt>Floor</dt><dd>B</dd></div>
<div><dt>Row</dt><dd>12</dd></div>
<div><dt>Seat</dt><dd>24</dd></div>
</dl>
<span class="perf" aria-hidden="true"></span>
<footer class="stub">
<div class="count" aria-live="polite">
<span class="count__label" data-count-label>Doors open in</span>
<span class="count__time" data-count aria-hidden="true"></span>
<span class="count__open" data-open aria-hidden="true">
<svg viewBox="0 0 20 20"><circle class="count__ring" cx="10" cy="10" r="8"/><path class="count__tick" d="M6.3 10.4l2.5 2.4 4.9-5.1"/></svg>
Doors are open
</span>
<span class="sr" data-count-sr></span>
</div>
<button class="pill" type="button" data-show data-autoclic aria-label="Show entry code">
<span class="pill__fill" aria-hidden="true"></span>
<svg class="pill__icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="3" y="3" width="5" height="5" rx="1.2"/><rect x="12" y="3" width="5" height="5" rx="1.2"/><rect x="3" y="12" width="5" height="5" rx="1.2"/><path d="M12 12h2v2h-2zM15 15h2v2h-2zM12 16h1.5M16 12v1.5"/></svg>
<span class="pill__label">Show code</span>
</button>
</footer>
</section>
<section class="face face--back" data-back aria-label="Entry code" inert>
<span class="face__rim" aria-hidden="true"></span>
<header class="back__top">
<span class="back__title">Scan at entrance</span>
<span class="back__gate">Gate 3</span>
</header>
<div class="code" data-code-box>
<canvas class="code__canvas" data-code role="img" aria-label="Live entry code"></canvas>
<span class="code__scan" aria-hidden="true" data-scan></span>
<span class="code__corner code__corner--tl" aria-hidden="true"></span>
<span class="code__corner code__corner--tr" aria-hidden="true"></span>
<span class="code__corner code__corner--bl" aria-hidden="true"></span>
<span class="code__corner code__corner--br" aria-hidden="true"></span>
</div>
<p class="back__seat">Floor B · Row 12 · Seat 24</p>
<p class="back__live">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.6l5.6 2.2v4.4c0 3.6-2.4 6.4-5.6 7.8-3.2-1.4-5.6-4.2-5.6-7.8V4.8z"/><path class="back__live-tick" d="M7.4 10.1l1.8 1.8 3.5-3.7"/></svg>
Live code · screenshots won’t scan
</p>
<span class="perf perf--back" aria-hidden="true"></span>
<footer class="back__foot">
<span class="renew">
<svg class="renew__ring" viewBox="0 0 20 20" aria-hidden="true"><circle class="renew__track" cx="10" cy="10" r="7.5"/><circle class="renew__arc" cx="10" cy="10" r="7.5" data-renew-arc/></svg>
<span class="renew__text">New code in <span class="renew__num" data-renew-num>8</span>s</span>
</span>
<button class="pill pill--light" type="button" data-done aria-label="Back to ticket">
<span class="pill__fill" aria-hidden="true"></span>
<svg class="pill__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M4.5 9.5a5.6 5.6 0 0 1 10.2-2.6M15.5 10.5a5.6 5.6 0 0 1-10.2 2.6"/><path d="M15.2 3.8v3.4h-3.4M4.8 16.2v-3.4h3.4"/></svg>
<span class="pill__label">Done</span>
</button>
</footer>
</section>
</div>
</div>
</div>
<svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></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.
49 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 “Concert ticket QR card” from Animorio and fit it into my siteA layer with a rainbow gradient (background-size 260%, its position following --mx and --my) has two masks: a radial circle centred on the light and a repeated SVG wave pattern, joined with mask-composite: intersect. So the guilloche engraving only exists where the light reaches, in screen over the dark ground.
The pointer does not write straight into CSS: three quickTo move a light object (x, y, intensity) with LIGHT_LAG seconds of lag and on every step write it into --mx, --my, --lit and --ang. The foil, the glare, the rim (a content-box xor mask), the title with background-clip: text and the seal with a conic-gradient all read them. On the back x is mirrored, because the card is turned.
Two faces with backface-visibility hidden inside a preserve-3d container: GSAP adds 180 degrees to rotationY with back.out (SPRING), so it always turns the same way, while lifting it with scale and z. The tilt towards the light sits on another element, the one above, so the two transforms do not cancel. The hidden face is inert: its buttons cannot be reached with Tab.
A canvas draws MODULES by MODULES rounded squares with roundRect, plus the three fixed finder squares. On renewal each square is delayed by its diagonal (x + y): the ones that change shrink to nothing and the new state comes out with a back.out, the unchanged ones just breathe a little. It only redraws during the wave; the holographic band above is an element in multiply moved by a yoyo timeline.
Each digit is a column with a strip of twenty digits (0 to 9 twice): going below 0 starts from the second copy, so it always rolls down by one step. Time is read from performance.now() in the GSAP ticker and the DOM is only touched when the second changes.
| Name | File | Default | What it changes |
|---|---|---|---|
DOORS_IN | script.js | 8048 | Seconds left before the doors open. |
CODE_REFRESH | script.js | 8 | Seconds between one entry code and the next. |
FLIP_TIME | script.js | 1.1 | Seconds for the card to turn over. |
SPRING | script.js | 1.3 | How far the turn and the digits overshoot before settling (0 none). |
TILT | script.js | 5 | Degrees the card leans towards the light. |
LIGHT_LAG | script.js | 0.55 | Seconds the light takes to follow the pointer. |
MODULES | script.js | 25 | Squares per side of the entry code. |
SPEED | script.js | 1 | Pilot speed. |
LOOP | script.js | true | The pilot starts over. |
In the account area of a ticketing site, a festival or a concert venue, and on the confirmation page after checkout: the ticket to show at the door, with the time left before the doors open and a code that cannot be screenshotted.
The same animation with adapted sizes: the card is as wide as the window’s width and height allow and every size inside follows its width (cqw units). With a finger the light goes where you touch and the buttons turn the card just like the mouse.
Nothing moves or tilts: the card does not turn, the two faces swap with a fade; digits change without rolling, the new code arrives with a fade and the holographic band stays still. The light on the foil still follows the pointer; the pilot’s pointer is hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 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.