Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Volume · david-mohseni
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By david-mohseni
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About Volume · david-mohseni
Volume · david-mohseni is an animated CSS button by david-mohseni. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
HTML
<div class="wrap">
<button class="btn">
<span class="text">Volume</span>
</button>
</div>CSS
.wrap {
text-align: center;
margin: 20px 0;
}
.btn {
width: 100px;
height: 100px;
background: repeating-radial-gradient(circle at 50% 50%, rgba(200,200,200,.2) 0%, rgba(200,200,200,.2) 2%, transparent 2%, transparent 3%, rgba(200,200,200,.2) 3%, transparent 3%), conic-gradient(white 0%, silver 10%, white 35%, silver 45%, white 60%, silver 70%, white 80%, silver 95%, white 100%);
border-radius: 50%;
box-shadow: 0 0px 20px #0005, 0 -0px 20px #fff2;
outline: 1px solid #fff;
outline-offset: -2px;
transition: 1s;
}
.text {
font-size: 20px;
font-weight: 700;
color: #aaa;
text-align: center;
text-shadow: 1px 1px 1px #fff;
}
.btn:hover {
transform: rotate(90deg);
}