Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Hover Me :) Thanks :D · Sergestra
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By Sergestra
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 :) Thanks :D · Sergestra
Hover Me :) Thanks :D · Sergestra is an animated CSS button by Sergestra. 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>
<div>
<span>
<p>Hover Me</p><p>:)</p>
</span>
</div>
<div>
<span>
<p>Thanks</p><p>:D</p>
</span>
</div>
</button>CSS
button {
outline: 0;
border: 0;
display: flex;
flex-direction: column;
width: 100%;
max-width: 140px;
height: 50px;
border-radius: 0.5em;
box-shadow: 0 0.625em 1em 0 rgba(30, 143, 255, 0.35);
overflow: hidden;
}
button div {
transform: translateY(0px);
width: 100%;
}
button,
button div {
transition: 0.6s cubic-bezier(.16,1,.3,1);
}
button div span {
display: flex;
align-items: center;
justify-content: space-between;
height: 50px;
padding: 0.75em 1.125em;
}
button div:nth-child(1) {
background-color: #1e90ff;
}
button div:nth-child(2) {
background-color: #21dc62;
}
button:hover {
box-shadow: 0 0.625em 1em 0 rgba(33, 220, 98, 0.35);
}
button:hover div {
transform: translateY(-50px);
}
button p {
font-size: 17px;
font-weight: bold;
color: #ffffff;
}
button:active {
transform: scale(0.95);
}