Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
ArturCodeCraft's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By ArturCodeCraft
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 ArturCodeCraft's hover button
ArturCodeCraft's hover button is an animated CSS button by ArturCodeCraft. 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
<div class="background">
<button class="menu__icon">
<span></span>
<span></span>
<span></span>
</button>
</div>CSS
/* <reset-style> ============================ */
button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font-family: inherit;
}
/* ============================ */
/* <style for bg> ======== */
.background {
border-radius: 16px;
border: 1px solid #1a1a1a;
background: rgba(74, 74, 74, 0.39);
mix-blend-mode: luminosity;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.20);
backdrop-filter: blur(15px);
width: 65px;
height: 65px;
display: flex;
justify-content: center;
align-items: center;
}
/* <style for menu__icon> ======== */
.menu__icon {
width: 32px;
height: 32px;
padding: 4px;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform .4s;
}
.menu__icon span {
width: 100%;
height: 0.25rem;
border-radius: 0.125rem;
background-color: rgb(0, 122, 255);
box-shadow: 0 .5px 2px 0 hsla(0, 0%, 0%, .2);
transition: width .4s, transform .4s, background-color .4s;
}
.menu__icon :nth-child(1) {
width: 75%;
}
.menu__icon :nth-child(2) {
width: 50%;
}
.menu__icon:hover {
transform: rotate(-90deg);
}
.menu__icon:hover span {
width: .25rem;
transform: translateX(10px);
background-color: rgb(255, 59, 48);
}