Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
vinodjangid07's hover button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By vinodjangid07
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 vinodjangid07's hover button
vinodjangid07's hover button is an animated CSS button by vinodjangid07. 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="bin-button">
<svg class="bin-top" viewBox="0 0 39 7" fill="none" xmlns="http://www.w3.org/2000/svg">
<line y1="5" x2="39" y2="5" stroke="white" stroke-width="4"></line>
<line x1="12" y1="1.5" x2="26.0357" y2="1.5" stroke="white" stroke-width="3"></line>
</svg>
<svg class="bin-bottom" viewBox="0 0 33 39" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="path-1-inside-1_8_19" fill="white">
<path d="M0 0H33V35C33 37.2091 31.2091 39 29 39H4C1.79086 39 0 37.2091 0 35V0Z"></path>
</mask>
<path d="M0 0H33H0ZM37 35C37 39.4183 33.4183 43 29 43H4C-0.418278 43 -4 39.4183 -4 35H4H29H37ZM4 43C-0.418278 43 -4 39.4183 -4 35V0H4V35V43ZM37 0V35C37 39.4183 33.4183 43 29 43V35V0H37Z" fill="white" mask="url(#path-1-inside-1_8_19)"></path>
<path d="M12 6L12 29" stroke="white" stroke-width="4"></path>
<path d="M21 6V29" stroke="white" stroke-width="4"></path>
</svg>
</button>CSS
.bin-button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 55px;
height: 55px;
border-radius: 15px;
background-color: rgb(255, 95, 95);
cursor: pointer;
border: 3px solid rgb(255, 201, 201);
transition-duration: 0.3s;
}
.bin-bottom {
width: 15px;
}
.bin-top {
width: 17px;
transform-origin: right;
transition-duration: 0.3s;
}
.bin-button:hover .bin-top {
transform: rotate(45deg);
}
.bin-button:hover {
background-color: rgb(255, 0, 0);
}
.bin-button:active {
transform: scale(0.9);
}