.button-3 {
font-family: inherit;
font-size: 20px;
background: royalblue;
color: white;
padding: 0.7em 1em;
padding-left: 0.9em;
display: flex;
align-items: center;
border: none;
border-radius: 16px;
overflow: hidden;
transition: all 0.2s;
}
.button-3 span {
display: block;
margin-left: 0.3em;
transition: all 0.3s ease-in-out;
}
.button-3 svg {
display: block;
transform-origin: center center;
transition: transform 0.3s ease-in-out;
}
.button-3:hover .svg-wrapper {
animation: fly-1 0.6s ease-in-out infinite alternate;
}
.button-3:hover svg {
transform: translateX(1.2em) rotate(45deg) scale(1.1);
}
.button-3:hover span {
transform: translateX(5em);
}
.button-3:active {
transform: scale(0.95);
}
@keyframes fly-1 {
from {
transform: translateY(0.1em);
}
to {
transform: translateY(-0.1em);
}
}