Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
mayurd8862's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By mayurd8862
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 mayurd8862's hover button
mayurd8862's hover button is an animated CSS button by mayurd8862. 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">
Button
</button>CSS
.button {
padding: 0.6em 1.3em;
font-weight: 900;
font-size: 18px;
background: linear-gradient(to right, rgb(231, 71, 132),
rgb(0, 170, 255));
/* Gradient background */
border-radius: 10px;
border: none;
color: aliceblue;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
/* Text shadow effect */
box-shadow: 0 0 10px rgba(55, 0, 255, 0.5);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.button:hover {
transform: scale(1.1);
box-shadow: 0 0 15px rgb(231, 71, 132);
color: white;
}