Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Mike11jr's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By Mike11jr
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 Mike11jr's hover button
Mike11jr's hover button is an animated CSS button by Mike11jr. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, 3D
- 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
<div class="scene">
<div class="cube">
<span class="side top">Easter</span>
<span class="side front">Happy</span>
</div>
</div>CSS
.scene {
width: 10em;
justify-content: center;
align-items: center;
}
.cube {
color: #ccc;
cursor: pointer;
font-family: 'Roboto', sans-serif;
transition: all 0.85s cubic-bezier(.17,.67,.14,.93);
transform-style: preserve-3d;
transform-origin: 100% 50%;
width: 10em;
height: 4em;
}
.cube:hover {
transform: rotateX(-90deg);
}
.side {
box-sizing: border-box;
position: absolute;
display: inline-block;
height: 4em;
width: 10em;
text-align: center;
text-transform: uppercase;
padding-top: 1.5em;
font-weight: bold;
}
.top {
background: wheat;
color: #222229;
transform: rotateX(90deg) translate3d(0, 0, 2em);
box-shadow: inset 0 0 0 5px #fff;
}
.front {
background: #222229;
color: #fff;
box-shadow: inset 0 0 0 5px #fff;
transform: translate3d(0, 0, 2em);
}