mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
73 lines
1.6 KiB
HTML
73 lines
1.6 KiB
HTML
<button>
|
|
<div class="svg-wrapper-1">
|
|
<div class="svg-wrapper">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
|
<path fill="none" d="M0 0h24v24H0z"></path>
|
|
<path fill="currentColor" d="M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<span>Send</span>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by eirikvold - Tags: button */
|
|
button {
|
|
font-family: inherit;
|
|
font-size: 18px;
|
|
background: linear-gradient(to bottom, #4dc7d9 0%,#66a6ff 100%);
|
|
color: white;
|
|
padding: 0.8em 1.2em;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
border-radius: 25px;
|
|
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.95);
|
|
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
button span {
|
|
display: block;
|
|
margin-left: 0.4em;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
button svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
fill: white;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
button .svg-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
margin-right: 0.5em;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
button:hover .svg-wrapper {
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
button:hover svg {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
|
|
</style>
|