mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
54 lines
1,001 B
HTML
54 lines
1,001 B
HTML
<button class="Btn">
|
|
<p class="text">Button</p>
|
|
<span class="BG"></span>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by vinodjangid07 - Tags: gradient, button, hover effect */
|
|
.Btn {
|
|
position: relative;
|
|
background-color: transparent;
|
|
border: none;
|
|
width: 100px;
|
|
height: 40px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all .3s;
|
|
}
|
|
|
|
.text {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(230, 230, 230, 0.466);
|
|
border: none;
|
|
border-radius: 7px;
|
|
backdrop-filter: blur(5px);
|
|
color: rgb(26, 26, 26);
|
|
display: flex;
|
|
font-weight: 600;
|
|
align-items: center;
|
|
justify-content: center;
|
|
letter-spacing: 0.8px;
|
|
}
|
|
|
|
.BG {
|
|
position: absolute;
|
|
content: "";
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: linear-gradient(147deg, #FFE53B, #FF2525);
|
|
z-index: -1;
|
|
left: 6px;
|
|
top: 6px;
|
|
border-radius: 7px;
|
|
pointer-events: none;
|
|
transition: all .3s;
|
|
}
|
|
|
|
.Btn:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.Btn:hover .BG {
|
|
transform: translateY(-1px);
|
|
}
|
|
</style>
|