Skip to content

Instantly share code, notes, and snippets.

@rachelnabors
Created October 30, 2012 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachelnabors/3977793 to your computer and use it in GitHub Desktop.
Save rachelnabors/3977793 to your computer and use it in GitHub Desktop.
A CodePen by Rachel Nabors.
<div class="tuna"></div>
<p>Awwww yeah...</p>
.tuna {
-webkit-animation: walk-cycle 1s steps(11, end) infinite;
background: url(http://www.rachelnabors.com/animation/toys/img/tuna-walking_sprite.png) 0 0 no-repeat;
height: 200px;
width: 400px;
margin: 20% auto 0;
}
@-webkit-keyframes walk-cycle {
0% {background-position: 0 0; }
100% {background-position: 0 100%; }
}
p {text-align: center;}
@rachelnabors
Copy link
Author

Tuna walk cycle from my animations talk at CSS Dev Conf, yo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment