mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
<button class="signupBtn">
|
|
SIGN UP
|
|
<span class="arrow">
|
|
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 320 512" fill="rgb(183, 128, 255)"><path d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"></path></svg>
|
|
</span>
|
|
</button>
|
|
|
|
|
|
<style>
|
|
/* From Uiverse.io by vinodjangid07 - Tags: gradient, button, hover effect, sign up */
|
|
.signupBtn {
|
|
width: 120px;
|
|
height: 40px;
|
|
border-radius: 30px;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding-left: 20px;
|
|
gap: 9px;
|
|
color: white;
|
|
background: linear-gradient(to right,rgb(128, 128, 255),rgb(183, 128, 255));
|
|
position: relative;
|
|
cursor: pointer;
|
|
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.212);
|
|
}
|
|
|
|
.arrow {
|
|
position: absolute;
|
|
right: 7.5px;
|
|
background-color: rgb(255, 255, 255);
|
|
width: 25px;
|
|
height: 25px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.signupBtn:hover .arrow {
|
|
animation: slide-in-left 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
|
}
|
|
|
|
@keyframes slide-in-left {
|
|
0% {
|
|
transform: translateX(-10px);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
</style>
|