mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
97 lines
No EOL
2.2 KiB
HTML
97 lines
No EOL
2.2 KiB
HTML
<button class="button">
|
|
<svg
|
|
class="send-icon"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="48"
|
|
height="48"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
fill="currentColor"
|
|
fill-opacity="0.4"
|
|
d="m16.066 10.184l-3.89-1.795c-2.154-.994-3.231-1.491-3.725-.982c-.493.509.038 1.572 1.101 3.698c.22.44.33.659.33.895s-.11.456-.33.895c-1.063 2.126-1.594 3.19-1.1 3.698c.493.51 1.57.012 3.725-.982l3.889-1.795c1.698-.784 2.548-1.176 2.548-1.816c0-.64-.85-1.032-2.549-1.816"
|
|
></path>
|
|
<path
|
|
fill="currentColor"
|
|
d="M8.895 11.684L8.174 9.52a1 1 0 0 0-.707-.654l-1.78-.445a.8.8 0 0 0-.91 1.134l1.111 2.22a.5.5 0 0 1 0 .448l-1.11 2.22a.8.8 0 0 0 .91 1.134l1.78-.445a1 1 0 0 0 .706-.654l.72-2.163a1 1 0 0 0 0-.632"
|
|
></path>
|
|
</svg>
|
|
Send Message
|
|
</button>
|
|
|
|
<style>
|
|
/* From Uiverse.io by ChanduOffl - Tags: icon, animation, white, button, message, btn, buttons, hover button */
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 10px 20px;
|
|
background-color: #fefefe;
|
|
border: 1px solid #dcdcdc;
|
|
border-radius: 12px;
|
|
|
|
font-family: "Ubuntu", sans-serif;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
z-index: 0;
|
|
outline: 2px solid #fafafa;
|
|
box-shadow: 9px 9px 44px #cecece3a, -9px -9px 44px #d3d3d33d,
|
|
inset 0 0 0 2px rgba(192, 192, 192, 0.25);
|
|
}
|
|
|
|
.button::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
right: 3px;
|
|
bottom: 3px;
|
|
border-radius: 30px;
|
|
background: linear-gradient(
|
|
0deg,
|
|
#fbfbfb 0%,
|
|
#fafafa 5%,
|
|
#f7f7f7 72%,
|
|
#f2f2f2 86%,
|
|
#f0f0f0 100%
|
|
);
|
|
box-shadow: inset 0 2px 7px rgba(143, 143, 143, 0.16);
|
|
transition: all 0.3s ease;
|
|
z-index: -1;
|
|
margin: 2px;
|
|
}
|
|
|
|
.button:hover::before {
|
|
top: 1px;
|
|
left: 1px;
|
|
right: 1px;
|
|
bottom: 1px;
|
|
margin: 5px;
|
|
}
|
|
|
|
.button:focus {
|
|
outline: 2px solid #fefefe;
|
|
box-shadow: 9px 9px 44px #cecece3a, -9px -9px 44px #d3d3d33d,
|
|
inset 0 0 0 2px rgba(192, 192, 192, 0.5);
|
|
}
|
|
|
|
.send-icon {
|
|
margin-right: 5px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.button:hover .send-icon {
|
|
transform: translateX(7px);
|
|
}
|
|
|
|
.button:focus .send-icon {
|
|
transform: rotate(-40deg);
|
|
}
|
|
|
|
</style>
|
|
|