mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<button class="submitBtn">
|
|
Submit
|
|
<svg fill="white" viewBox="0 0 448 512" height="1em" class="arrow"><path d="M438.6 278.6c12.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.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"></path></svg>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by vinodjangid07 - Tags: gradient, button, submit, hover effect */
|
|
.submitBtn {
|
|
width: 120px;
|
|
height: 40px;
|
|
border-radius: 30px;
|
|
border: none;
|
|
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.13);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
color: white;
|
|
background: linear-gradient(to left,rgb(230, 35, 0),rgb(255, 174, 0));
|
|
letter-spacing: 0.7px;
|
|
}
|
|
|
|
.submitBtn:hover .arrow {
|
|
animation: slide-in-left 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
|
|
}
|
|
|
|
@keyframes slide-in-left {
|
|
0% {
|
|
transform: translateX(-10px);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0px);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.submitBtn:active {
|
|
transform: scale(0.97);
|
|
}
|
|
</style>
|