18 CSS Play / Pause Button Designs
Liquid Drop
Organic blob shape that morphs its border-radius on play — like a droplet of mercury reshaping itself. Mint-fresh palette for wellness and meditation apps.
Liquid Drop the 15th of 18 designs in the 18 CSS Play / Pause Button Designs collection. The design pairs CSS styling with a small amount of JavaScript for interactivity. Copy the HTML, CSS and JavaScript panels below into your project — the JS is self-contained, has zero dependencies, and is safe to drop into any framework (React, Vue, Svelte, plain HTML). The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<button class="pp-drop" type="button" aria-pressed="false" aria-label="Play" data-pp>
<svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true">
<path class="pp-drop-icon" d="M8 5 L8 19 L19 12 Z" fill="currentColor" />
</svg>
</button> .pp-drop {
width: 64px;
height: 64px;
border: 0;
padding: 0;
background: linear-gradient(135deg, #34d399, #10b981);
border-radius: 50% 40% 50% 60% / 50% 50% 50% 50%;
color: white;
cursor: pointer;
display: grid;
place-items: center;
box-shadow:
0 10px 24px -4px rgba(16, 185, 129, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.18);
transition:
border-radius 0.35s cubic-bezier(0.5, 0, 0.3, 1.2),
transform 0.15s,
box-shadow 0.25s;
}
.pp-drop:hover {
transform: translateY(-1px);
box-shadow:
0 14px 30px -4px rgba(16, 185, 129, 0.65),
inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pp-drop:focus-visible {
outline: 3px solid rgba(52, 211, 153, 0.45);
outline-offset: 3px;
}
.pp-drop[aria-pressed="true"] {
animation: ppDropMorph 4s ease-in-out infinite;
}
@keyframes ppDropMorph {
0%,
100% {
border-radius: 50% 40% 50% 60% / 50% 50% 50% 50%;
}
25% {
border-radius: 60% 50% 40% 50% / 40% 60% 50% 50%;
}
50% {
border-radius: 40% 50% 60% 40% / 50% 40% 60% 50%;
}
75% {
border-radius: 50% 60% 40% 50% / 60% 50% 40% 60%;
}
}
.pp-drop-icon {
transition: d 0.3s cubic-bezier(0.5, 0, 0.3, 1.2);
}
.pp-drop[aria-pressed="true"] .pp-drop-icon {
d: path("M7 5 H10 V19 H7 Z M14 5 H17 V19 H14 Z");
}
@media (prefers-reduced-motion: reduce) {
.pp-drop,
.pp-drop * {
animation: none !important;
}
}
// ── Drop this on every page where you render a play/pause button ──
// Toggles aria-pressed + aria-label on click. The CSS handles all visuals.
document.querySelectorAll('[data-pp]').forEach(function (btn) {
btn.addEventListener('click', function () {
var playing = btn.getAttribute('aria-pressed') === 'true';
btn.setAttribute('aria-pressed', String(!playing));
btn.setAttribute('aria-label', !playing ? 'Pause' : 'Play');
});
}); More from 18 CSS Play / Pause Button Designs
Magnetic HoverRipple on ClickCassette TapeLive BadgeMorph TriangleVinyl RecordEqualiser BarsSkip HubLiquid WavePulse HaloToggle PillNeon Arcade
View the full collection →