Last active
December 20, 2015 15:09
-
-
Save tjoskar/6152003 to your computer and use it in GitHub Desktop.
Simpel corner to coner animation
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
.holder { | |
position: absolute; | |
left: 0; | |
top: 0; | |
background: red; | |
white-space: nowrap; | |
-webkit-animation: frames 30s linear; | |
} | |
@-webkit-keyframes frames { | |
0% { | |
left: 0; | |
top: 0; | |
} | |
25% { | |
left: 100%; | |
top: 0; | |
} | |
50% { | |
left: 100%; | |
top: 100% | |
} | |
75% { | |
left: 0; | |
top: 100% | |
} | |
100% { | |
left: 0; | |
top: 0; | |
} | |
} |
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
<div class="holder"> | |
<span>Message</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment