Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
laminelawal's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By laminelawal
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 laminelawal's hover button
laminelawal's hover button is an animated CSS button by laminelawal. 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">
Click Me
</button>CSS
button {
border-radius: 30px;
border: none;
cursor: pointer;
outline: none;
width: 150px;
height: 54px;
background-image: linear-gradient(to top, #222 0%, #333 80%, #444 100%);
color: white;
font-size: 20px;
font-weight: 400;
font-family: monospace;
transition: all 0.3s;
text-shadow: 0 4px 3px black;
}
button:hover {
box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 0 3px 3px black;
}
button:active {
box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 0 3px 3px black;
}
button:focus {
box-shadow: 0 4px 3px 1px #333, 0 6px 8px #222, 0 -4px 4px #222, 0 -6px 4px #333, inset 0 5px 7px 0 black;
}