Controls Reveal
A copy-paste video player ui component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Video Player UIHTMLCSSany framework
Copy into your project
HTML
<!-- Controls Reveal — bar slides up from the bottom on hover -->
<div class="nuda-vctrl">
<video class="nuda-vctrl__video" src="/your.mp4"></video>
<div class="nuda-vctrl__bar">
<button class="nuda-vctrl__btn" aria-label="Play">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M8 5 L19 12 L8 19 Z" /></svg>
</button>
<div class="nuda-vctrl__progress"><span></span></div>
<span class="nuda-vctrl__time">1:24</span>
<button class="nuda-vctrl__btn" aria-label="Volume">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round">
<path d="M11 5 L6 9 L2 9 L2 15 L6 15 L11 19 Z" fill="currentColor" />
</svg>
</button>
</div>
</div>CSS
/* Controls Reveal
Player chrome that slides up from bottom on hover.
Customize: --vctrl-accent */
.nuda-vctrl {
--vctrl-accent: #e4ff54;
position: relative;
width: 100%;
max-width: 480px;
aspect-ratio: 16 / 9;
background: linear-gradient(135deg, #1a1a1f, #0e0e10);
border-radius: 12px;
overflow: hidden;
}
.nuda-vctrl__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.nuda-vctrl__bar {
position: absolute;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
transform: translateY(100%);
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
}
.nuda-vctrl:hover .nuda-vctrl__bar {
transform: translateY(0);
opacity: 1;
}
.nuda-vctrl__btn {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: transparent;
border: none;
color: #fafafa;
cursor: pointer;
flex-shrink: 0;
transition: color 0.2s;
}
.nuda-vctrl__btn:hover { color: var(--vctrl-accent); }
.nuda-vctrl__btn svg { width: 14px; height: 14px; }
.nuda-vctrl__progress {
flex: 1;
height: 3px;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
overflow: hidden;
}
.nuda-vctrl__progress span {
display: block;
height: 100%;
width: 38%;
background: var(--vctrl-accent);
border-radius: 2px;
box-shadow: 0 0 4px rgba(228, 255, 84, 0.5);
}
.nuda-vctrl__time {
font: 600 0.7rem ui-monospace, monospace;
color: #fafafa;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
}How to use Controls Reveal
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.