
The star rating
Ratings, SVG, Hover
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”.
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>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
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 siteThe 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
AHEAD | script.js | 4 | How many songs are in line before yours. |
STEP | script.js | 0.7 | Every how many seconds the queue gets one shorter. |
SPEED | script.js | 200 | How many degrees a second the record turns (a 33 rpm does 200). |
ACCENT | script.js | #7a5cff | The colour of the record’s label and of the tint. |
OK | script.js | #ff4f8b | The colour once the request has arrived. |
HOLD | script.js | 2.2 | On its own: how many seconds “Up next” stays before going back. |
LOOP | script.js | true | Left alone, a pointer tries it by itself. |
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.
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.
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.
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.
Tested on 16 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.