Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
flxderdev's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By flxderdev
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 flxderdev's hover button
flxderdev's hover button is an animated CSS button by flxderdev. 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 class="button">HOVER ME</button>CSS
.button {
height: 55px;
width: 175px;
margin: auto;
align-items: center;
border-radius: 50px;
border: none;
text-align: center;
color: transparent;
text-shadow: 0 0 0 rgb(255, 255, 255);
font-size: 17px;
font-weight: 500;
text-transform: uppercase;
text-decoration: none;
box-sizing: border-box;
cursor: pointer;
transition: transform 50ms ease;
background: linear-gradient(90deg, #5f03f4, #f441a5, #b81fff, #5f03f4);
background-size: 400%;
display: block;
margin-right: auto;
margin-left: auto;
font-family: "Montserrat", sans-serif;
}
.button:hover {
-webkit-box-shadow: 0px 0px 15px 0px rgba(155, 0, 194, 0.9);
-moz-box-shadow: 0px 0px 15px 0px rgba(155, 0, 194, 0.9);
box-shadow: 0px 0px 15px 0px rgba(155, 0, 194, 0.9);
animation: animate 8s ease infinite;
transition: box-shadow, 0.4s;
border: none;
font-size: 19px;
transform: scale(1.05, 1.05);
background: linear-gradient(90deg, #5f03f4, #f441a5, #b81fff, #5f03f4);
background-size: 400%;
}
.button:hover:before {
filter: blur(20px);
opacity: 1;
animation: animate 8s linear infinite;
}
@keyframes animate {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}