Now Playing Card
A copy-paste audio & waveforms component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Audio & WaveformsHTMLCSSany framework
Midnight Drive
— Nuda
Copy into your project
HTML
<div class="nuda-nowplay">
<div class="nuda-nowplay__cover"><span></span></div>
<div class="nuda-nowplay__body">
<div class="nuda-nowplay__title">Midnight Drive</div>
<div class="nuda-nowplay__artist">— Nuda</div>
<div class="nuda-nowplay__eq">
<span></span><span></span><span></span><span></span>
</div>
</div>
</div>CSS
.nuda-nowplay {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 12px;
width: 100%;
max-width: 260px;
}
.nuda-nowplay__cover {
position: relative;
width: 44px;
height: 44px;
border-radius: 8px;
background: linear-gradient(135deg,#9d6dff,#ff6dd4);
overflow: hidden;
flex-shrink: 0;
}
.nuda-nowplay__cover span {
position: absolute;
inset: 0;
background: linear-gradient(115deg,transparent 40%,rgba(255,255,255,.4),transparent 60%);
transform: translateX(-100%);
animation: _npShine 3s ease-in-out infinite;
}
.nuda-nowplay__body {
flex: 1;
min-width: 0;
}
.nuda-nowplay__title {
color: #fafafa;
font-size: 12px;
font-weight: 600;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.nuda-nowplay__artist {
color: #a0a0a8;
font-size: 11px;
margin-top: 1px;
}
.nuda-nowplay__eq {
display: inline-flex;
align-items: flex-end;
gap: 2px;
height: 9px;
margin-top: 4px;
}
.nuda-nowplay__eq span {
width: 2px;
height: 100%;
background: #e4ff54;
border-radius: 1px;
animation: _npEq .9s ease-in-out infinite;
}
.nuda-nowplay__eq span:nth-child(2) {
animation-delay: .1s;
}
.nuda-nowplay__eq span:nth-child(3) {
animation-delay: .2s;
}
.nuda-nowplay__eq span:nth-child(4) {
animation-delay: .3s;
}
@keyframes _npShine {
50% {
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
}
@keyframes _npEq {
0%,100% {
transform: scaleY(.3);
}
50% {
transform: scaleY(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-nowplay__cover span,.nuda-nowplay__eq span {
animation: none;
}
}
How to use Now Playing Card
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.