This is because as soon as the animation is complete, it reverts to the original style.
you can, however, tweak the animation to save the last frame of the animation after it is completed, called Animation fill mode
animation-fill-mode: forwards;- saves the last frame of the animation.
animation-fill-mode: backwards;- saves the first frame of the animation.
or you can add forwardsanimations to your ad:
-webkit-animation: fadein 1s 2s ease forwards; /* Safari and Chrome */
animation: fadein 1s 2s ease forwards;
source
share