mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
59 lines
977 B
HTML
59 lines
977 B
HTML
<button class="button"> Hey, Hover Me
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by gagan-gv - Tags: button */
|
|
.button {
|
|
padding: 15px 20px;
|
|
font-size: 16px;
|
|
background: transparent;
|
|
border: none;
|
|
position: relative;
|
|
color: #f0f0f0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.button::after,
|
|
.button::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
z-index: -99999;
|
|
transition: all .4s;
|
|
}
|
|
|
|
.button::before {
|
|
transform: translate(0%, 0%);
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #28282d;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.button::after {
|
|
transform: translate(10px, 10px);
|
|
width: 35px;
|
|
height: 35px;
|
|
background: #ffffff15;
|
|
backdrop-filter: blur(5px);
|
|
border-radius: 50px;
|
|
}
|
|
|
|
.button:hover::before {
|
|
transform: translate(5%, 20%);
|
|
width: 110%;
|
|
height: 110%;
|
|
}
|
|
|
|
.button:hover::after {
|
|
border-radius: 10px;
|
|
transform: translate(0, 0);
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.button:active::after {
|
|
transition: 0s;
|
|
transform: translate(0, 5%);
|
|
}
|
|
</style>
|