Created
March 28, 2013 15:40
-
-
Save Poltergeist/5264179 to your computer and use it in GitHub Desktop.
load animation
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
/** | |
* load animation | |
*/ | |
.circle{ | |
position:absolute; | |
border:5px red solid; | |
border-color:red red transparent transparent; | |
width:190px; | |
height:190px; | |
border-radius:100px 100px 100px 100px; | |
animation:turn 5s linear; | |
transform:rotate(45deg); | |
} | |
.parent{ | |
position:absolute; | |
width:200px; | |
height:200px; | |
clip:rect(0px,200px,200px,100px); | |
} | |
@keyframes turn{ | |
0%{ | |
transform:rotate(-135deg); | |
} | |
100%{ | |
transform:rotate(45deg); | |
} | |
} |
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="parent"><div class="circle"> </div></div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment