Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
watchakorn-18k's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By watchakorn-18k
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 watchakorn-18k's hover button
watchakorn-18k's hover button is an animated CSS button by watchakorn-18k. 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-space space">
Button
</button>CSS
.btn-space {
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
-webkit-transition: 0.5s;
transition: 0.5s;
background-size: 500% auto;
font-weight: bold;
font-size: 1rem;
color: rgba(255, 255, 255, 0.103);
border-radius: 10px;
}
.btn-space:hover {
background-position: right center;
border-image-source: linear-gradient(90deg, #d53a9d,#743ad5 );
-webkit-box-shadow: 0 0 20px #743ad5;
box-shadow: 0 0 20px #743ad5;
color: rgb(255, 255, 255);
text-shadow: 1px 1px 10px #d53a9d;
}
.space {
background-image: -webkit-gradient(linear, left top, right top, from(#743ad5), color-stop(51%, #d53a9d), to(#743ad5));
background-image: linear-gradient(to right, #743ad5 0%, #d53a9d 51%, #743ad5 100%);
border-image-source: linear-gradient(45deg, #743ad5, #d53a9d );
border-image-outset: 1em;
}