Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
wang3616359git's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By wang3616359git
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 wang3616359git's hover button
wang3616359git's hover button is an animated CSS button by wang3616359git. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Animated
- 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="bt" id="bt">
<span class="msg" id="msg"></span>
SEND
</button>CSS
.bt {
border: none;
user-select: none;
font-size: 18px;
color: white;
text-align: center;
background-color: #0873bd;
box-shadow: #cacaca 2px 2px 10px 1px;
border-radius: 12px;
height: 60px;
line-height: 60px;
width: 155px;
transition: all 0.2s ease;
position: relative;
}
.msg {
height: 0;
width: 0;
border-radius: 2px;
position: absolute;
left: 15%;
top: 25%;
}
.bt:active {
transition: all 0.001s ease;
background-color: #5d9fcd;
box-shadow: #97989a 0 0 0 0;
transform: translateX(1px) translateY(1px);
}
.bt:hover .msg {
animation: msgRun 2s forwards;
}
@keyframes msgRun {
0% {
border-top: #d6d6d9 0 solid;
border-bottom: #f2f2f5 0 solid;
border-left: #f2f2f5 0 solid;
border-right: #f2f2f5 0 solid;
}
20% {
border-top: #d6d6d9 14px solid;
border-bottom: #f2f2f5 14px solid;
border-left: #f2f2f5 20px solid;
border-right: #f2f2f5 20px solid;
}
25% {
border-top: #d6d6d9 12px solid;
border-bottom: #f2f2f5 12px solid;
border-left: #f2f2f5 18px solid;
border-right: #f2f2f5 18px solid;
}
80% {
border-top: transparent 12px solid;
border-bottom: transparent 12px solid;
border-left: transparent 18px solid;
border-right: transparent 18px solid;
}
100% {
transform: translateX(150px);
border-top: transparent 12px solid;
border-bottom: transparent 12px solid;
border-left: transparent 18px solid;
border-right: transparent 18px solid;
}
}