Track Progress
A copy-paste audio & waveforms component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Audio & WaveformsHTMLCSSany framework
1:243:32
Copy into your project
HTML
<div class="nuda-trprog">
<div class="nuda-trprog__bar">
<div class="nuda-trprog__played" style="width:40%"></div>
<span class="nuda-trprog__pin" style="left:40%"></span>
</div>
<div class="nuda-trprog__time">
<span>1:24</span>
<span>3:32</span>
</div>
</div>CSS
.nuda-trprog {
padding: 12px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 12px;
width: 100%;
max-width: 260px;
}
.nuda-trprog__bar {
position: relative;
height: 6px;
background: repeating-linear-gradient(90deg,rgba(255,255,255,.1) 0,rgba(255,255,255,.1) 1px,transparent 1px,transparent 3px),rgba(255,255,255,.05);
border-radius: 3px;
margin-bottom: 6px;
cursor: pointer;
}
.nuda-trprog__played {
position: absolute;
left: 0;
top: 0;
height: 100%;
background: #e4ff54;
border-radius: 3px;
transition: width .45s cubic-bezier(.16,1,.3,1);
}
.nuda-trprog__played::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(90deg,rgba(9,9,11,.25) 0,rgba(9,9,11,.25) 1px,transparent 1px,transparent 3px);
border-radius: 3px;
}
.nuda-trprog__pin {
position: absolute;
top: 50%;
width: 10px;
height: 10px;
border-radius: 50%;
background: #e4ff54;
border: 2px solid #09090b;
transform: translate(-50%,-50%);
box-shadow: 0 0 10px rgba(228,255,84,.6);
}
.nuda-trprog__time {
display: flex;
justify-content: space-between;
color: #a0a0a8;
font-size: 10px;
font-variant-numeric: tabular-nums;
font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
How to use Track Progress
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.