Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
alexreyes091's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By alexreyes091
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 alexreyes091's hover button
alexreyes091's hover button is an animated CSS button by alexreyes091. 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="btn"> Button
</button>CSS
.btn {
padding: 1rem 2rem;
font-weight: 700;
background: rgb(255, 255, 255);
color: blueviolet;
border-radius: .5rem;
border-bottom: 2px solid blueviolet;
border-right: 2px solid blueviolet;
border-top: 2px solid white;
border-left: 2px solid white;
transition-duration: 1s;
transition-property: border-top,
border-left,
border-bottom,
border-right,
box-shadow;
}
.btn:hover {
border-top: 2px solid blueviolet;
border-left: 2px solid blueviolet;
border-bottom: 2px solid rgb(238, 103, 238);
border-right: 2px solid rgb(238, 103, 238);
box-shadow: rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px;
}