css3 moving image animation ( Source Code ) HTML <div class="wrapper"> </div> CSS body { margin: 0; padding: 0; } .wrapper { width: calc(1440px / 5); height: 605px; background: url("https://i.postimg.cc/RVsZ3wQR/4.png"); animation: img-animation 1s steps(5) infinite; } @keyframes img-animation { from { background-position: 0; } to { background-position: -1440px; } }
No comments