Animation Direction and Iterations in CSS


Control the direction and number of times an animation plays.

Source Code

.repeated-animation {
    animation: bounce 2s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments