mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
65 lines
1.8 KiB
HTML
65 lines
1.8 KiB
HTML
<button class="button" type="button">
|
|
<span class="button__text">Download</span>
|
|
<span class="button__icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35" id="bdd05811-e15d-428c-bb53-8661459f9307" data-name="Layer 2" class="svg"><path d="M17.5,22.131a1.249,1.249,0,0,1-1.25-1.25V2.187a1.25,1.25,0,0,1,2.5,0V20.881A1.25,1.25,0,0,1,17.5,22.131Z"></path><path d="M17.5,22.693a3.189,3.189,0,0,1-2.262-.936L8.487,15.006a1.249,1.249,0,0,1,1.767-1.767l6.751,6.751a.7.7,0,0,0,.99,0l6.751-6.751a1.25,1.25,0,0,1,1.768,1.767l-6.752,6.751A3.191,3.191,0,0,1,17.5,22.693Z"></path><path d="M31.436,34.063H3.564A3.318,3.318,0,0,1,.25,30.749V22.011a1.25,1.25,0,0,1,2.5,0v8.738a.815.815,0,0,0,.814.814H31.436a.815.815,0,0,0,.814-.814V22.011a1.25,1.25,0,1,1,2.5,0v8.738A3.318,3.318,0,0,1,31.436,34.063Z"></path></svg></span>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by andrew-demchenk0 - Tags: button */
|
|
.button {
|
|
position: relative;
|
|
width: 150px;
|
|
height: 40px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
border: 1px solid #17795E;
|
|
background-color: #209978;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.button, .button__icon, .button__text {
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.button .button__text {
|
|
transform: translateX(22px);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.button .button__icon {
|
|
position: absolute;
|
|
transform: translateX(109px);
|
|
height: 100%;
|
|
width: 39px;
|
|
background-color: #17795E;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.button .svg {
|
|
width: 20px;
|
|
fill: #fff;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #17795E;
|
|
}
|
|
|
|
.button:hover .button__text {
|
|
color: transparent;
|
|
}
|
|
|
|
.button:hover .button__icon {
|
|
width: 148px;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.button:active .button__icon {
|
|
background-color: #146c54;
|
|
}
|
|
|
|
.button:active {
|
|
border: 1px solid #146c54;
|
|
}
|
|
</style>
|