galaxy/Buttons/LilaRest_chilly-moth-52.html

76 lines
1.5 KiB
HTML

<button>
<svg height="32" width="32" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H24V24H0z" fill="none"></path><path d="M16.5 3C19.538 3 22 5.5 22 9c0 7-7.5 11-10 12.5C9.5 20 2 16 2 9c0-3.5 2.5-6 5.5-6C9.36 3 11 4 12 5c1-1 2.64-2 4.5-2z"></path></svg>
</button>
<style>
/* From Uiverse.io by LilaRest - Tags: neumorphism, skeuomorphism, animation, minimalist, social, button, like, heart, realistic, favorite */
button {
display: flex;
justify-content: center;
align-items: center;
padding: 20px 22px 20px 22px;
box-shadow: rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
background-color: #e8e8e8;
border-color: #ffe2e2;
border-style: solid;
border-width: 9px;
border-radius: 35px;
transition: transform 400ms cubic-bezier(.68,-0.55,.27,2.5),
border-color 400ms ease-in-out,
background-color 400ms ease-in-out;
word-spacing: -2px;
}
@keyframes movingBorders {
0% {
border-color: #fce4e4;
}
50% {
border-color: #ffd8d8;
}
90% {
border-color: #fce4e4;
}
}
button:hover {
background-color: #eee;
transform: scale(105%);
animation: movingBorders 3s infinite;
}
button svg {
fill: rgb(255, 110, 110);
}
@keyframes beatingHeart {
0% {
transform: scale(1);
}
15% {
transform: scale(1.15);
}
30% {
transform: scale(1);
}
45% {
transform: scale(1.15);
}
60% {
transform: scale(1);
}
}
button:hover svg {
transform: scale(105%);
border-color: #ffd8d8;
animation: beatingHeart 1.2s infinite;
}
</style>