Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
hover me ! · ercnersoy
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By ercnersoy
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 hover me ! · ercnersoy
hover me ! · ercnersoy is an animated CSS button by ercnersoy. 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
<button class="button">hover me !</button>CSS
.button {
cursor: pointer;
padding: 1rem 4rem;
border: 0;
background-color: rebeccapurple;
color: white;
box-shadow: 0px 10px 0px 0px rgb(68, 37, 99);
transition: all 0.9s ease-in-out;
font-weight: 600;
font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
"Lucida Sans Unicode", Geneva, Verdana, sans-serif;
font-size: 1rem;
position: relative;
}
.button:hover {
box-shadow: 0px 10px 0px 0px rgb(122, 71, 173);
background-color: rgb(80, 31, 129);
}
.button:active {
box-shadow: 0px 5px 0px 0px rgb(122, 71, 173);
text-shadow: 0 0px 0px #000;
}
.button::before {
content: "";
position: absolute;
left: 0;
bottom: 0px;
box-shadow: 0px 10px 0px 0px rgb(229, 104, 9);
width: 0;
height: 10px;
transition: all 0.9s ease-in-out;
}
.button:hover::before {
width: 100%;
}