Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
MuhammadHasann's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By MuhammadHasann
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 MuhammadHasann's hover button
MuhammadHasann's hover button is an animated CSS button by MuhammadHasann. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Animated
- 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
<button>
Button
</button>CSS
button {
position: relative;
padding: 13px 35px;
background: #6d7973;
font-size: 17px;
font-weight: 900;
color: #ffffff;
border: 2px solid #6d7973;
border-radius: 25px;
transition: all .3s ease-in-out;
}
button::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 124px;
height: 45px;
border: 3px solid #6d7973;
border-radius: 25px;
transition: all .3s ease-in-out;
z-index: 2;
}
button:hover::after {
animation: radar_45011 1s ease infinite .3s;
}
@keyframes radar_45011 {
from {
opacity: 1;
width: 124px;
height: 45px;
border-radius: 25px;
}
to {
opacity: 0;
width: 470px;
height: 220px;
border-radius: 150px;
}
}
button:active {
transform: scale(.9);
}