-webkit-animation: spin 5s linear 0s infinite; -moz-animation: spin 5s linear 0s infinite; animation: spin 5s linear 0s infinite;
<div class="box"><img src="img.svg"></div>
.box { animation-duration: 3s; animation-iteration-count: infinite; animation-name: bounce-2; } @keyframes bounce-2 { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }