Skip to content
animorio
IT
All components

DJ song request button

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

The button to ask the party’s DJ for a song. Pressed, the arm drops onto the vinyl record and the record starts to spin while the request reaches the booth; then the tag counts the songs before yours, one at a time, down to “Up next”.

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>
<!--
  "DJ song request 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>Request a song button for the DJ with the record that spins and the queue that gets shorter</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 request button of a party's DJ: pressed, the arm drops on the record and it starts to spin while the
         request reaches the booth; then the tag counts the songs before yours, one by one, down to "Up next" -->
    <button class="dj" type="button" data-dj>
      <span class="dj__body" aria-hidden="true"><span class="dj__wash" data-wash></span><span class="dj__light"></span></span>
      <span class="dj__edge" aria-hidden="true"></span>

      <span class="seat" data-seat aria-hidden="true">
        <svg viewBox="0 0 24 24">
          <g transform="translate(11.200 12.600)">
            <g data-disc>
              <circle class="seat__vinyl" r="8.600"></circle>
              <circle class="seat__groove" r="6.700"></circle>
              <circle class="seat__groove" r="5.100"></circle>
              <path class="seat__shine" d="M-7.300 -2.400a7.700 7.700 0 0 1 4.900 -5.300"></path>
              <path class="seat__shine" d="M7.300 2.400a7.700 7.700 0 0 1 -4.900 5.300"></path>
              <circle class="seat__label" r="3.100"></circle>
              <path class="seat__mark" d="M0.900 -1.900h1.300"></path>
              <circle class="seat__hole" r="0.700"></circle>
            </g>
            <g data-arm><path class="seat__arm" d="M9.800 -10.200 6.300 -3.600 4.400 -2.300"></path><circle class="seat__pivot" cx="9.800" cy="-10.200" r="1.300"></circle></g>
          </g>
        </svg>
      </span>

      <span class="label">
        <span class="label__main"><span data-word>Request a song</span></span>
        <span class="label__sub"><span data-sub>DJ Mora is taking requests</span></span>
      </span>
      <span class="tag" aria-hidden="true"><span data-left></span></span>
    </button>
    <p class="sr" data-live aria-live="polite"></p>

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

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.

15 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 “DJ song request 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 white, a dark pill 60 pixels high: on the left a light disc holding a vinyl record (grooves, highlights, violet label) with the turntable’s arm resting to one side, in the middle “Request a song” and below it “DJ Mora is taking requests”, on the right a tag with “4 in line”. On hover the light follows the pointer and the arm moves closer to the record. Pressed: a violet tint leaves the disc, the texts roll to “Sending it over”, the arm drops onto the record with a small bounce and the record gets up to speed. Then everything turns pink, the text says “You are in the queue” and the tag counts the songs left, “4 to go”, “3 to go”, one at a time, the arm skipping a groove at each song, down to “Up next” and “Yours is up next”. After a few seconds the record slows down, the arm goes back to rest and the button is as it was.

How it works

Record and arm around zero

The record is drawn around zero inside a group that places it, the arm turns on its pivot: the two angles live in one object and are written into the transform attribute, so nothing drifts off centre while spinning.

Getting up to speed

The record accelerates with power1.in up to SPEED degrees a second, then carries on with a linear tween of one whole turn that repeats: the wrap is invisible. At the end it slows with power1.out.

The queue going down

A single timeline rolls the tag every STEP seconds, from AHEAD down to “Up next”; at each step the arm gives a small kick back and returns with back.out.

Values to change

NameFileDefaultWhat it changes
AHEADscript.js4How many songs are in line before yours.
STEPscript.js0.7Every how many seconds the queue gets one shorter.
SPEEDscript.js200How many degrees a second the record turns (a 33 rpm does 200).
ACCENTscript.js#7a5cffThe colour of the record’s label and of the tint.
OKscript.js#ff4f8bThe colour once the request has arrived.
HOLDscript.js2.2On its own: how many seconds “Up next” stays before going back.
LOOPscript.jstrueLeft alone, a pointer tries it by itself.

Try them in the Playground

When to use it

On the site or app of a party, a wedding, a venue or a DJ night: where guests ask for a song from their phone and want to know when theirs is coming.

On phones

The same button, as wide as the screen minus the margins; with no pointer there is no light and the arm starts from the tap.

With reduced motion

The record does not spin and the arm does not move: only the texts and the colour change, and the queue goes down without rolling.

Pitfalls

  • In the demo the queue goes down by itself every STEP seconds: on a real site the number comes from the booth and drops when a song really ends.
  • The record spins with a tween that repeats by 360 degrees: with anything other than a whole turn it would jerk at each repeat.
  • The queue is announced only once (aria-live), not at every song: the tag is aria-hidden.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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