Turntable Deck
A record deck laid back into the picture plane, the platter raised above the plinth and turning under a tonearm that creeps slowly inward across the grooves.
- lines of CSS
- 126lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- stops under reduced motion
- Guardedstops under reduced motion
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v14-3d-turntable-15746 {
display: grid;
place-items: center;
width: 210px;
height: 152px;
perspective: 520px;
}
.fx-v14-3d-turntable-15746 .dk {
position: relative;
width: 176px;
height: 132px;
border-radius: 0.5rem;
background: linear-gradient(160deg, #263248, #141c2c);
box-shadow: 0 22px 34px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(148,163,184,0.18);
transform-style: preserve-3d;
transform: rotateX(58deg) rotateZ(-8deg);
}
.fx-v14-3d-turntable-15746 .pl {
position: absolute;
left: 26px;
top: 16px;
width: 100px;
height: 100px;
border-radius: 50%;
background:
repeating-radial-gradient(circle at 50% 50%, #10141d 0 2px, #171d29 2px 4px);
box-shadow: 0 0 0 1px rgba(148,163,184,0.2);
transform: translateZ(9px);
animation: fx-v14-3d-turntable-15746-spin 3.4s linear infinite;
}
.fx-v14-3d-turntable-15746 .pl::after {
content: '';
position: absolute;
left: 50%;
top: 5px;
width: 2px;
height: 20px;
margin-left: -1px;
background: rgba(226,232,240,0.4);
}
.fx-v14-3d-turntable-15746 .lb {
position: absolute;
left: 50%;
top: 50%;
width: 36px;
height: 36px;
margin: -18px 0 0 -18px;
border-radius: 50%;
background: conic-gradient(from 0deg, #f97316, #fbbf24, #f97316);
box-shadow: inset 0 0 0 5px rgba(15,23,42,0.15);
}
.fx-v14-3d-turntable-15746 .lb::after {
content: '';
position: absolute;
left: 50%;
top: 50%;
width: 6px;
height: 6px;
margin: -3px 0 0 -3px;
border-radius: 50%;
background: #0f172a;
}
.fx-v14-3d-turntable-15746 .arm {
position: absolute;
right: 20px;
top: 22px;
width: 6px;
height: 68px;
border-radius: 3px;
background: linear-gradient(180deg, #cbd5e1, #64748b);
transform-origin: 50% 6px;
transform: translateZ(17px) rotate(28deg);
animation: fx-v14-3d-turntable-15746-drift 9s ease-in-out infinite;
}
.fx-v14-3d-turntable-15746 .arm::before {
content: '';
position: absolute;
left: -6px;
top: -6px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #94a3b8;
box-shadow: inset 0 0 0 4px #475569;
}
.fx-v14-3d-turntable-15746 .arm::after {
content: '';
position: absolute;
left: -3px;
bottom: -3px;
width: 12px;
height: 10px;
border-radius: 2px;
background: #e2e8f0;
}
.fx-v14-3d-turntable-15746 .btn {
position: absolute;
right: 22px;
bottom: 14px;
width: 14px;
height: 14px;
border-radius: 50%;
background: #22d3ee;
box-shadow: 0 0 10px rgba(34,211,238,0.7);
transform: translateZ(11px);
}
@keyframes fx-v14-3d-turntable-15746-spin { to { transform: translateZ(9px) rotate(360deg); } }
@keyframes fx-v14-3d-turntable-15746-drift {
0%, 100% { transform: translateZ(17px) rotate(28deg); }
50% { transform: translateZ(17px) rotate(34deg); }
}
@media (prefers-reduced-motion: reduce) {
.fx-v14-3d-turntable-15746,
.fx-v14-3d-turntable-15746::before,
.fx-v14-3d-turntable-15746::after,
.fx-v14-3d-turntable-15746 *,
.fx-v14-3d-turntable-15746 *::before,
.fx-v14-3d-turntable-15746 *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
transition-delay: 0ms !important;
}
}<div class="fx-v14-3d-turntable-15746">
<div class="dk">
<div class="pl">
<i class="lb"></i>
</div>
<b class="arm"></b>
<em class="btn"></em>
</div>
</div>What do I do with this?
- Put
turntable-deck-15747.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v14-3d-turntable-15746">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add turntable-deck-15747What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add turntable-deck-15747
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Guarded
Ships a
prefers-reduced-motionblock, so the loop settles into its end state for visitors who ask for less motion. - What it animates
- Compositor only
Only
transform,opacityorfilter: the GPU can run it without re-laying-out or repainting the page. - Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
31 more effects in 3D & Perspective
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse 3D & PerspectiveShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Turntable Deck
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.