mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
48 lines
1 KiB
HTML
48 lines
1 KiB
HTML
<button class="button">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" height="24" fill="none" class="svg-icon"><g stroke-width="2" stroke-linecap="round" stroke="#fff"><rect y="5" x="4" width="16" rx="2" height="16"></rect><path d="m8 3v4"></path><path d="m16 3v4"></path><path d="m4 11h16"></path></g></svg>
|
|
<span class="lable">Add to Calendar</span>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by andrew-demchenk0 - Tags: animation, calendar, button, creditcard, add, add to callendar */
|
|
.button {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 9px 12px;
|
|
gap: 8px;
|
|
height: 40px;
|
|
width: 201px;
|
|
border: none;
|
|
background: #FF342B;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lable {
|
|
line-height: 22px;
|
|
font-size: 17px;
|
|
color: #fff;
|
|
font-family: sans-serif;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #e52e26;
|
|
}
|
|
|
|
.button:hover .svg-icon {
|
|
animation: slope 1s linear infinite;
|
|
}
|
|
|
|
@keyframes slope {
|
|
0% {
|
|
}
|
|
|
|
50% {
|
|
transform: rotate(10deg);
|
|
}
|
|
|
|
100% {
|
|
}
|
|
}
|
|
</style>
|