galaxy/Buttons/vinodjangid07_tame-cobra-18.html

73 lines
No EOL
1.7 KiB
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>
<style>
/* From Uiverse.io by vinodjangid07 - Tags: animation, button, hover, trash, delete, transition, hover effect, bin */
.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);
}
</style>