I want to add a simple keyframe-animation to an element by something like that:
.sw_intro{
animation: introtop;
animation-duration: 0.8s;
animation-delay: 2s;
}
@keyframes introtop {
from {margin-top: 0;}
to {margin-top: 100vh;}
}
But I want the end of the animation to be the end status. So, after the animation ran, the margin-top shall be 100vh not 0vh, as it currently is.
What do I need to do therefore?
Thanks!