Last active
December 20, 2015 01:29
-
-
Save jeremyckahn/6049211 to your computer and use it in GitHub Desktop.
This is a CSS animation that starts and ends the loop in the middle of the animation timeline.
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| .stylie { | |
| -webkit-animation-name: stylie-transform-keyframes; | |
| -webkit-animation-duration: 2000ms; | |
| -webkit-animation-delay: 0ms; | |
| -webkit-animation-fill-mode: forwards; | |
| -webkit-animation-timing-function: linear; | |
| -webkit-animation-iteration-count: infinite; | |
| -webkit-transform-origin: 0 0; | |
| } | |
| @-webkit-keyframes stylie-transform-keyframes { | |
| 80.01% {-webkit-transform:translateX(20px) translateY(20px) rotate(0deg)} | |
| 100% {-webkit-transform:translateX(89px) translateY(68px) rotate(0deg)} | |
| 0% {-webkit-transform:translateX(89px) translateY(68px) rotate(0deg)} | |
| 20% {-webkit-transform:translateX(158px) translateY(116px) rotate(0deg)} | |
| 40% {-webkit-transform:translateX(227px) translateY(164px) rotate(0deg)} | |
| 60% {-webkit-transform:translateX(296px) translateY(212px) rotate(0deg)} | |
| 80% {-webkit-transform:translateX(365px) translateY(260px) rotate(0deg)} | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <img src="https://www.google.com/images/srpr/logo4w.png" class="stylie"> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment