CodePen

HTML

            
              <div id="go" class="container">

	<a href="#go">Animate</a> <a href="#reset">Reset</a>

  <div class="cartoon">
  </div>

</div>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              .cartoon {
  width: 125px;
  height: 150px;
  background: url(http://tangledindesign.com/codepen/sprite.jpg) left;
  -webkit-transition: 2s steps(16);
  transition: 2s steps(16);
  border: 1px solid black;
  margin-top: 30px;
}

#go:target .cartoon {
  background-position: -4000px 0;
}

body {
  font: .7em Arial;
}

.container {
  margin: 20px auto;
  width: 150px;
}

a {
  padding: 5px 10px;
  background: blue;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
}

a:hover {
  opacity: 0.6;
}

p {
  font-size: 1.2em;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................