Skip to content
animorio
IT
All components

Concert ticket QR card

Cards, Hover, TransitionsGSAP, CSS only, CanvasAdvancedCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

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.

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

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.

49 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 “Concert ticket QR card” 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

A dark card with a fine grain and two notches on the perforated line. Under the pointer a soft light follows the hand on a spring: where it falls the holographic foil engraved with waves lights up (a guilloche mask intersected with a circle of light), the Night Swim title catches a rainbow band, the round seal turns its colours and the 1px rim glows only there; the card leans a few degrees towards the light. On the stub the doors open in 02:14:08 and the seconds roll down; at zero the countdown gives way to Doors are open with a ring and a tick drawing themselves. Show code widens and swells on hover and squashes when pressed; the card lifts a hair, turns over with an overshoot and settles. The back is bone white: the code arrives in a diagonal wave, a holographic band runs back and forth over it, the shield tick draws itself and the renew ring empties; at zero the code changes with the same wave. Done turns it back the same way round.

How it works

Foil that only shows in the light

A 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.

Light on a spring

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.

The turn

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.

The code that renews in a wave

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.

The doors countdown

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.

Values to change

NameFileDefaultWhat it changes
DOORS_INscript.js8048Seconds left before the doors open.
CODE_REFRESHscript.js8Seconds between one entry code and the next.
FLIP_TIMEscript.js1.1Seconds for the card to turn over.
SPRINGscript.js1.3How far the turn and the digits overshoot before settling (0 none).
TILTscript.js5Degrees the card leans towards the light.
LIGHT_LAGscript.js0.55Seconds the light takes to follow the pointer.
MODULESscript.js25Squares per side of the entry code.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The slow breathing of the light and the pointer’s quickTo both moved the same y and cancelled each other: the breathing now has its own property (drift) added in CSS.
  • On the back the light went to the opposite side of the pointer, because the face is turned 180 degrees: x is mirrored while the card shows its back.
  • The perforation notches are a mask on the face: put on the turning container, it flattened the 3D and the back disappeared. The mask lives only on the two faces.

Libraries

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.

Testing

Tested on 10 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 components