Vinyl Record Card
A card styled as a vinyl record sleeve. The inner record spins at 33⅓ RPM on hover, and the grooves shimmer like laser diffraction. Clicking drops the needle with a soft animation and reveals track info on the B-side.
Vinyl Record Card
by FreeCsStyles Dev's
CardsSpin / Rotation / Flip
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#vinyl#record#spin#music#album#groove#needle#turntable#retro#audio
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/vinyl-record-card.
<iframe src="/embed/vinyl-record-card" sandbox="allow-scripts" loading="lazy" title="Vinyl Record Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Vinyl Record Card, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="vinyl-card">
<div class="vinyl-sleeve">
<div class="vinyl-disc">
<div class="vinyl-label"></div>
<div class="vinyl-grooves"></div>
</div>
<div class="vinyl-needle"></div>
<div class="vinyl-content">
<div class="vinyl-title">Midnight Waves</div>
<div class="vinyl-artist">Luna Eclipse</div>
<div class="vinyl-badge">33⅓ RPM</div>
</div>
</div>
</div>CSS
.vinyl-card { position: relative; width: 220px; min-height: 290px; border-radius: 4px; background: linear-gradient(160deg, #1a1418, #0a080c); border: 1.5px solid rgba(180,140,160,0.15); overflow: hidden; cursor: pointer; }
.vinyl-card:hover { box-shadow: 0 0 30px rgba(180,100,140,0.1); }
.vinyl-disc { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); width: 130px; height: 130px; border-radius: 50%; background: #111; transition: transform 0.1s linear; }
.vinyl-card:hover .vinyl-disc { transform: translate(-50%,-50%) rotate(360deg); transition: transform 2s linear; }
.vinyl-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle, #c4385a, #8a2040); }
.vinyl-grooves { position: absolute; inset: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 5px rgba(0,0,0,0.8); }
.vinyl-needle { position: absolute; right: 20px; top: 85px; width: 3px; height: 30px; background: #888; transform: rotate(25deg); transform-origin: top center; transition: transform 0.5s; }
.vinyl-card:hover .vinyl-needle { transform: rotate(15deg); }
.vinyl-content { position: absolute; inset-x: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); }
.vinyl-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.vinyl-artist { font-size: 10px; color: rgba(196,56,90,0.6); }
.vinyl-badge { font-size: 8px; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-top: 4px; }Tailwind CSS
<div class="group relative w-[220px] min-h-[290px] rounded bg-gradient-to-b from-[#1a1418] to-[#0a080c] border border-rose-900/20 overflow-hidden cursor-pointer group-hover:shadow-[0_0_30px_rgba(180,100,140,0.1)]">
<div class="absolute left-1/2 top-[40%] -translate-x-1/2 -translate-y-1/2 w-[130px] h-[130px] rounded-full bg-[#111] transition-transform duration-[2s] linear group-hover:rotate-[360deg]">
<div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-11 h-11 rounded-full bg-gradient-radial from-rose-500 to-rose-800"></div>
<div class="absolute inset-[18px] rounded-full border border-white/5 shadow-[inset_0_0_5px_rgba(0,0,0,0.8)]"></div>
</div>
<div class="absolute right-5 top-[85px] w-[3px] h-[30px] bg-gray-400 origin-top transition-transform group-hover:rotate-[15deg]" style="transform:rotate(25deg)"></div>
<div class="absolute inset-x-0 bottom-0 p-4 bg-gradient-to-t from-black/70 to-transparent">
<p class="text-sm font-bold text-white/90">Midnight Waves</p>
<p class="text-[10px] text-rose-500/60">Luna Eclipse</p>
<p class="text-[8px] font-semibold tracking-widest text-white/30 mt-1">33⅓ RPM</p>
</div>
</div>React
import React, { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function VinylRecordCard({ width = 220, title = 'Midnight Waves', artist = 'Luna Eclipse' }) {
const ref = useRef(null);
const [isHovered, setIsHovered] = useState(false);
const [isFlipped, setIsFlipped] = useState(false);
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 25, stiffness: 250 });
const rotateY = useSpring(x, { damping: 25, stiffness: 250 });
const handleMouseMove = (e) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
x.set(-((e.clientX - rect.left - rect.width / 2) / (rect.width / 2)) * 6);
y.set(((e.clientY - rect.top - rect.height / 2) / (rect.height / 2)) * 6);
};
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
<motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => setIsFlipped(!isFlipped)}
animate={{ rotateY: isFlipped ? 180 : 0 }} style={{ rotateX, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
<motion.div className="relative overflow-hidden rounded" style={{ width, minHeight: 290, background: 'linear-gradient(160deg, #1a1418, #0a080c)', border: '1.5px solid rgba(180,140,160,0.15)' }}>
<motion.div className="absolute left-1/2 top-[40%] -translate-x-1/2 -translate-y-1/2 w-[130px] h-[130px] rounded-full bg-[#111]"
animate={{ rotate: isHovered ? 360 : 0 }} transition={{ duration: 2, repeat: isHovered ? Infinity : 0, ease: 'linear' }}>
<div className="absolute inset-0 rounded-full" style={{ background: 'repeating-conic-gradient(rgba(255,255,255,0.02) 0deg 3deg, transparent 3deg 6deg)' }} />
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-11 h-11 rounded-full" style={{ background: 'radial-gradient(circle, #c4385a, #8a2040)' }} />
</motion.div>
<div className="absolute inset-x-0 bottom-0 p-4" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.7), transparent)' }}>
<p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>{title}</p>
<p className="text-[10px]" style={{ color: 'rgba(196,56,90,0.6)' }}>{artist}</p>
<p className="text-[8px] font-semibold tracking-widest mt-1" style={{ color: 'rgba(255,255,255,0.3)' }}>{isFlipped ? 'B-SIDE' : '33⅓ RPM'}</p>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Vinyl Record Card fits
- Music Cards
- Album Showcase
- Artist Portfolios
- Playlist UI
- DJ Interfaces
Interaction states & animations
- Record spin on hover
- Groove shimmer diffraction
- Needle drop animation
- Flip to B-side
- Tracklist reveal
Topics
- #vinyl
- #record
- #spin
- #music
- #album
- #groove
- #needle
- #turntable
- #retro
- #audio
Accessibility notes
Spinning animation stops with prefers-reduced-motion. All content accessible without hover/click interaction.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+