Skip to content
animorio
IT
All components

Find seats button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

The «Find best seats» button of a concert hall's ticket site, warm dark glass on an amber black, like a Dribbble shot: on its left a small window holds the hall in miniature, the screen as an arc of light, the projector's cone and seven curved rows of seats, some already taken. On hover a warm light follows the pointer in the glass, on the rim and over the rows; pressed, the light scans the hall row by row while the number of seats checked rolls up, then stops on the two best seats of row F, which light up amber as the hall pushes in. The button says the row and the seats, holds them with a ticking timer and goes back to rest.

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>
<!--
  "Find seats button" 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 Find seats button with the hall that lights up</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">
    <!-- the Find seats button of a concert hall's ticket site, dark glass on a warm black. On its left a small window
         holds the hall in miniature: the screen as a thin warm arc at the top, a cone of light falling from it and
         seven curved rows of seats, some already taken. On hover a soft light follows the pointer inside the glass
         and over the rows; pressed, the light scans the hall row by row while the number of seats checked rolls up,
         then it stops on the two best free seats, which light up amber while the hall pushes in on them. The button
         says the row and the seats, holds them with a ticking timer and then goes back to rest -->
    <div class="fs" data-wrap>
      <span class="fs__spill" data-spill aria-hidden="true"></span>
      <button class="fs__btn" type="button" data-btn aria-label="Find the best 2 seats, Friday 8:30 pm, 96 dollars">
        <span class="fs__glass" data-glass>
          <span class="fs__body" aria-hidden="true"></span>
          <span class="fs__shine" data-shine aria-hidden="true"></span>
          <span class="fs__rim" aria-hidden="true"></span>
          <span class="fs__sweep" aria-hidden="true"><span class="fs__sweep-band" data-sweep></span></span>
          <span class="fs__row">
            <span class="fs__hall" aria-hidden="true">
              <svg viewBox="0 0 72 44" data-hall>
                <defs>
                  <linearGradient id="fs-cone" x1="0" y1="0" x2="0" y2="1">
                    <stop offset="0" stop-color="var(--amber)" stop-opacity="0.55"/>
                    <stop offset="0.55" stop-color="var(--amber)" stop-opacity="0.12"/>
                    <stop offset="1" stop-color="var(--amber)" stop-opacity="0"/>
                  </linearGradient>
                  <filter id="fs-soft" x="-30%" y="-200%" width="160%" height="500%">
                    <feGaussianBlur stdDeviation="1.6"/>
                  </filter>
                  <filter id="fs-seatglow" x="-200%" y="-200%" width="500%" height="500%">
                    <feGaussianBlur stdDeviation="1.4"/>
                  </filter>
                </defs>
                <g data-cam>
                  <path class="fs__cone" data-cone d="M14 6.4Q36 3.2 58 6.4L71 44H1Z" fill="url(#fs-cone)"/>
                  <path class="fs__screen-glow" data-screen-glow d="M14 6.2Q36 3 58 6.2" filter="url(#fs-soft)"/>
                  <path class="fs__screen" d="M14 6.2Q36 3 58 6.2"/>
                  <g data-glows filter="url(#fs-seatglow)"></g>
                  <g data-seats></g>
                </g>
              </svg>
            </span>
            <span class="fs__text">
              <span class="fs__stack fs__stack--title">
                <span class="fs__title" data-title>Find best seats</span>
                <span class="fs__title fs__title--busy" data-title>Finding seats</span>
                <span class="fs__title" data-title>Row F, seats 6&#8211;7</span>
              </span>
              <span class="fs__stack fs__stack--sub">
                <span class="fs__sub" data-sub>2 tickets · Fri 8:30 pm</span>
                <span class="fs__sub" data-sub>Checked <span data-count>0</span> seats</span>
                <span class="fs__sub" data-sub>Held for <span data-clock>10:00</span></span>
              </span>
            </span>
            <span class="fs__chip">
              <span class="fs__chip-face" data-chip>$96</span>
              <span class="fs__chip-face" data-chip>
                <svg class="fs__spin" viewBox="0 0 20 20" data-spin><circle cx="10" cy="10" r="6.5" pathLength="1"/></svg>
              </span>
              <span class="fs__chip-face fs__chip-face--ok" data-chip>
                <svg class="fs__ok" viewBox="0 0 20 20"><path data-check pathLength="1" d="M5.6 10.4l3 3 5.8-6.4"/></svg>
                <span data-total>$96</span>
              </span>
            </span>
          </span>
        </span>
      </button>
    </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.

30 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 “Find seats button” 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 warm black, with a faint amber light from above and a very fine grain, a single pill button 60 pixels tall stands alone, made of dark glass: the top edge catches the light in one pixel, the bottom one stays in shadow, and under the button the floor takes a velvet red tint. On the left, sunk into the glass, a small window shows the hall in miniature: the screen is a thin arc of warm light with a haze, a cone of light falls from it, flickering slightly like a projector, and below it seven curved rows of seats, each turned towards the centre; the taken ones are dark. Next to it «Find best seats» with the small line «2 tickets · Fri 8:30 pm», on the right the capsule with the price, $96. On hover the button lifts by a pixel, an amber light follows the pointer inside the glass, the rim lights up only near the pointer and the same light runs over the seats under it. Pressed, the glass gives and comes back on a spring; the words become «Finding seats» with a sheen crossing them, the capsule becomes a spinning arc and the small line counts the seats checked up to 1,240. Meanwhile a band of light scans the hall from the back row to the front, with a spot going back and forth, and comes back to row F. There it stops: the two centre seats drop into place in amber, a pixel too far and back, the hall pushes in on them, a reflection crosses the glass, the capsule draws a check next to the price and the words say «Row F, seats 6–7» and «Held for 10:00», with the timer going down one second at a time. Then everything goes back to rest, and by itself it starts again until someone touches it.

How it works

A layered dark glass

The button is one box (.fs__glass, moved only by GSAP) with four absolute layers inside: the body with a gradient from the top, a wet highlight in ::after, a feTurbulence grain as a background image and four inner shadows; the light under the pointer, a radial-gradient reading --mx and --my; the rim, a one-pixel ring made with two masks composited with exclude, showing the same gradient only on the outline; and the final reflection, a slanted band GSAP slides with xPercent.

The hall drawn by the script

The seven rows are SVG rectangles made in a loop: each seat sits on an arc (y = base − k·dx²) and is rotated by atan(−2k·dx) degrees, so it faces the screen. A string of zeros and ones per row says which are taken. The two chosen seats have an amber twin on top and a blurred one below, in the group with the feGaussianBlur filter.

One light, computed every frame

An object S holds the intensities: hov and hx for the pointer light, scan, sr and sx for the search, pick for the chosen seats. GSAP's ticker adds up, for each seat, a gaussian on the distance from the pointer and two on the distance from the row and from the spot, and writes the opacity only if it changed. The search is a timeline taking sr from the back row to the front and then to row F, while sx swings on a sine.

The seat that drops and the hall that pushes in

At the end each amber twin starts at scale 0.4 and lands on 1 with back.out, one after the other, around its own centre (svgOrigin). The hall group scales by ZOOM around the two seats and moves up just enough to keep them in the middle of the window, with expo.out.

Swapping words and rolling numbers

The title, the small line and the capsule have three faces each in the same grid cell: one leaves upwards, the next comes in from below with back.out. The seat counter is a tween on a number formatted with toLocaleString, the timer a linear tween on the seconds rounded up, so it goes down one second at a time.

Values to change

NameFileDefaultWhat it changes
LABEL_RESTscript.jsFind best seatsThe words at rest.
LABEL_BUSYscript.jsFinding seatsThe words while the hall is scanned.
LABEL_DONEscript.jsRow F, seats 6–7The words when the seats are found.
DETAILscript.js2 tickets · Fri 8:30 pmThe small line at rest.
PRICEscript.js$96The price in the capsule.
SEATSscript.js1240How many seats the hall has: the number that rolls up while scanning.
SCANscript.js1.9Seconds the scan takes, from the back row to the chosen seats.
ZOOMscript.js1.45How far the hall pushes in on the chosen seats.
HOLD_MINscript.js10Minutes the seats are held, shown on the timer.
HOLDscript.js3.2Seconds the found state stays before going back to rest.
SPRINGscript.js1How springy the press and the seats are: 0.4 calm, 2 very bouncy.
AUTOscript.jstrueGoes round by itself until someone touches it.

Try them in the Playground

When to use it

For the main button of a ticket site for concerts, theatres, cinemas or museums, when the site picks the best seats for you: the hall in miniature shows where you will sit before you even read the row, and the timer says the seats are held for you.

On phones

On the phone the button is at most 88% of the screen wide and the words stay on one line; there is no hover, so the light under the finger turns on at the touch and the search, the seats and the timer are the same.

With reduced motion

Nothing moves: the projector does not flicker, the light does not scan the rows and the hall does not push in; the words and the capsule swap in place with a fade, the counter and the timer still count and the two amber seats fade in.

Pitfalls

  • With the small window rounded at 999px only on the left, the browser scaled every radius down and the right side came out almost straight: the radii are written in real pixels (23 on the left, 12 on the right).
  • Zooming the hall around the seats of row F, the second to last, the seats stayed at the bottom and the screen left at once: the group also moves up by (29 − the seat's y) units, so the seats end just below the middle and the front of the hall still shows.
  • With reduced motion the ticker does not redraw, so the amber seats never appeared: the pick fades call the drawing on every update.
  • Writing the opacity of 72 seats every frame cost for nothing while the light was still: the value is rounded to the hundredth and written only when it changes.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.5 KB; the libraries: GSAP 28 KB.

Testing

Tested on 2 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