Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
chethan025's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By chethan025
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 chethan025's hover button
chethan025's hover button is an animated CSS button by chethan025. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Icon
- 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">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 97 162" height="162" width="97" class="svg">
<path fill="#262626" d="M47.2124 0H54.0796V151.644L86.6991 128.712H97L50.646 162L0 128.712H10.3009L47.2124 151.644V0Z"></path>
</svg>
</button>CSS
.button {
width: 38px;
height: 82px;
padding: 2px;
border: 1px solid #474747;
border-radius: 50px;
background: rgba(141, 141, 141, 0.18);
transition: all 0.3s ease-in-out;
transform: rotate(180deg);
}
.svg {
width: 22px;
height: 62px;
transform: rotate(180deg);
}
.button:hover {
transform: scale(-1.2);
}
.button:focus {
height: 0px;
width: 0px;
padding: 0px;
border: 0px;
}
.button:focus > .svg {
display: none;
height: 0px;
}