Created
October 30, 2012 01:31
-
-
Save rachelnabors/3977793 to your computer and use it in GitHub Desktop.
A CodePen by Rachel Nabors.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="tuna"></div> | |
<p>Awwww yeah...</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tuna walk cycle from my animations talk at CSS Dev Conf, yo.