got an simple animation with keyframes.
@-webkit-keyframes rotation {
0% { -webkit-transform: rotate(10deg); }
25% { -webkit-transform: rotate(5deg); }
50% { -webkit-transform: rotate(10deg); }
75% { -webkit-transform: rotate(5deg); }
100% { -webkit-transform: rotate(10deg); }
}
and
.class { -webkit-animation: rotation 1s infinite; }
Is it possible to add a pause between this keyframe animation? Like 5 seconds? I know there is a -webkit-animation-delay but this delays only the start of the animation.
P.S. I know its only the webkit prefix... at the end I get it through prefixr.
Got an workaround, but looks bit dirty
After struggling with this problem myself and the help of Denny Mueller I've found that the key is to stop before 100%.
You can use the delay to start with a delay and after the first iteration, the delay will be the amount of time that is left after the animation is finished.
Here is what I used for my implementation:
As you can see, I stop at 94% and the remaining 6% is used to pause on the first frame.