Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
ZacharyCrespin's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By ZacharyCrespin
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 ZacharyCrespin's hover button
ZacharyCrespin's hover button is an animated CSS button by ZacharyCrespin. 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>Button</button>CSS
button {
transition: all 0.5s;
font-size: 17px;
padding: 1ch 2ch;
background-color: white;
color: #000;
font-family: Roboto, sans-serif;
border: none;
border-radius: 2px;
box-shadow: 2px 2px 0px hsl(0, 0%, 90%),
4px 4px 0px hsl(0, 0%, 80%),
6px 6px 0px hsl(0, 0%, 70%),
8px 8px 0px hsl(0, 0%, 60%),
10px 10px 0px hsl(0, 0%, 50%),
12px 12px 0px hsl(0, 0%, 40%),
14px 14px 0px hsl(0, 0%, 30%),
16px 16px 0px hsl(0, 0%, 20%),
18px 18px 0px hsl(0, 0%, 10%);
}
button:hover {
background-color: hsl(0, 0%, 50%);
color: #fff;
box-shadow: none;
}