Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
3bdel3ziz-T's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By 3bdel3ziz-T
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 3bdel3ziz-T's hover button
3bdel3ziz-T's hover button is an animated CSS button by 3bdel3ziz-T. 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="button"></button>CSS
.button,
.button::before {
box-sizing: border-box;
--col-orange: #d17842;
--col-white: #fff;
--col-dark: #212121;
cursor: pointer;
text-transform: capitalize;
font-size: 20px;
font-weight: 600;
fill: var(--col-white);
color: var(--col-white);
color: var(col-dark);
font-family: "arial";
}
.button {
width: 200px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid transparent;
background: var(--col-orange);
padding: 8px 50px;
position: relative;
transition: all 200ms;
border-radius: 25px;
z-index: 99;
}
.button:hover {
border-color: transparent;
color: var(--col-dark);
background: transparent;
}
.button::before {
height: fit-content;
content: "great work🥳";
position: absolute;
left: 40px;
width: 0;
overflow: hidden;
transition: all 550ms;
text-wrap: nowrap;
z-index: -1;
}
.button:hover::before {
width: 135px;
color: var(--col-white);
}
.button::after {
content: "hover me";
position: relative;
}
.button:hover::after {
display: none;
}