I want the keyframe "smoothly" to do its thing when the button is hovered over.
It works great, but when the animation restarts, I want it to freeze at the end.
I have looked at some places, but I can't find anything that solves my problem.
My code:
#en {
display: inline-block;
padding: 0.3em 1.2em;
border:0.16em solid rgba(255,255,255,0);
font-weight: 300;
border-radius: 0em;
border-color: #4ef18f;
background-color: #4ef18f;
}
@keyframes smoothly {
from {background-color: #43f18f;}
to {background-color: #bbecd0;}
from {border-radius: 0em;}
to {border-radius: 4em;}
}
#en:hover {
animation-name: smoothly;
animation-duration: 1s;
}