<div class="monster"></div>
body {
background: #24aecd;
}
.monster {
width: 190px;
height: 240px;
margin: 2% auto;
background: url('https://treehouse-code-samples.s3.amazonaws.com/CSS-DD/codepen/blog/monster.png') left center;
animation: play .8s steps(10) infinite;
}
@keyframes play {
100% { background-position: -1900px; }
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.