Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
shadowmurphy's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By shadowmurphy
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 shadowmurphy's hover button
shadowmurphy's hover button is an animated CSS button by shadowmurphy. 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="button">Button</button>CSS
.button {
overflow: hidden;
position: relative;
border: 1px solid #D1D1D1;
background-color: #F5F5F5;
width: 100px;
height: 30px;
user-select: none;
cursor: pointer;
border-radius: 5px;
transition: all 0.5s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
}
.button:hover {
transform: scale(1.1);
background-color: #E8E8E8;
border-color: #BDBDBD;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.button:active {
transform: scale(0.95);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.button::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%,
transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%,
transparent 75%, transparent);
opacity: 0;
animation: buttonGlow 2s linear infinite;
z-index: -1;
}
@keyframes buttonGlow {
0% {
background-position: 0 0;
}
100% {
background-position: 400% 0;
}
}