mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
58 lines
1.2 KiB
HTML
58 lines
1.2 KiB
HTML
<button class="cta">
|
|
<span class="hover-underline-animation"> Shop now </span>
|
|
<svg viewBox="0 0 46 16" height="10" width="30" xmlns="http://www.w3.org/2000/svg" id="arrow-horizontal">
|
|
<path transform="translate(30)" d="M8,0,6.545,1.455l5.506,5.506H-30V9.039H12.052L6.545,14.545,8,16l8-8Z" data-name="Path 10" id="Path_10"></path>
|
|
</svg>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by alexmaracinaru - Tags: button, shop */
|
|
.cta {
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
.cta span {
|
|
padding-bottom: 7px;
|
|
letter-spacing: 4px;
|
|
font-size: 14px;
|
|
padding-right: 15px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cta svg {
|
|
transform: translateX(-8px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.cta:hover svg {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.cta:active svg {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.hover-underline-animation {
|
|
position: relative;
|
|
color: black;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.hover-underline-animation:after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
transform: scaleX(0);
|
|
height: 2px;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: #000000;
|
|
transform-origin: bottom right;
|
|
transition: transform 0.25s ease-out;
|
|
}
|
|
|
|
.cta:hover .hover-underline-animation:after {
|
|
transform: scaleX(1);
|
|
transform-origin: bottom left;
|
|
}
|
|
</style>
|