galaxy/Buttons/gharsh11032000_bright-warthog-8.html

48 lines
863 B
HTML

<button class="button">
Hover me
</button>
<style>
/* From Uiverse.io by gharsh11032000 - Tags: button */
.button {
position: relative;
text-decoration: none;
font-size: 17px;
font-weight: 600;
text-transform: uppercase;
background-color: #e8e8e8;
padding: 15px 30px;
cursor: pointer;
border: none;
border-radius: 10px;
overflow: hidden;
transition: all 0.4s ease;
}
.button:before {
content: "";
position: absolute;
pointer-events: none;
width: 100%;
height: 20%;
background-color: #e8e8e8;
translate: -100% 0;
rotate: 45deg;
transition: all 0.4s ease;
}
.button:hover {
color: #e8e8e8;
background-color: #8364e8;
box-shadow: 0 0 24px 8px rgba(131, 100, 232, 0.4);
}
.button:hover:before {
translate: 100%;
}
.button:active {
scale: 0.95;
box-shadow: 0 0 16px 4px rgba(131, 100, 232, 0.4);
}
</style>