mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
66 lines
1.1 KiB
HTML
66 lines
1.1 KiB
HTML
<button class="cta">
|
|
<span>Hover me</span>
|
|
<svg viewBox="0 0 13 10" height="10px" width="15px">
|
|
<path d="M1,5 L11,5"></path>
|
|
<polyline points="8 1 12 5 8 9"></polyline>
|
|
</svg>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by alexmaracinaru - Tags: button */
|
|
.cta {
|
|
position: relative;
|
|
margin: auto;
|
|
padding: 12px 18px;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
.cta:before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
border-radius: 50px;
|
|
background: #b1dae7;
|
|
width: 45px;
|
|
height: 45px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.cta span {
|
|
position: relative;
|
|
font-family: "Ubuntu", sans-serif;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
color: #234567;
|
|
}
|
|
|
|
.cta svg {
|
|
position: relative;
|
|
top: 0;
|
|
margin-left: 10px;
|
|
fill: none;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke: #234567;
|
|
stroke-width: 2;
|
|
transform: translateX(-5px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.cta:hover:before {
|
|
width: 100%;
|
|
background: #b1dae7;
|
|
}
|
|
|
|
.cta:hover svg {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.cta:active {
|
|
transform: scale(0.95);
|
|
}
|
|
</style>
|