@keyframes animationname {
0% { /*from*/ }
100% { /* to */ }
}
.class-to-apply-animation .selector {
animation: animationname 4s infinite ease-in-out;
}
'bouncer'
@keyframes bouncer {
0% { transform: translateY(-5px) }
50% { transform: translateY(10px) }
100% { transform: translateY(-5px) }
}
.bouncer img{
animation: bouncer 4s infinite ease-in-out;
}