Created
May 27, 2015 17:12
-
-
Save Poltergeist/aa3168dfe5f67dc0930a to your computer and use it in GitHub Desktop.
loading 2
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
/** | |
* loading 2 | |
*/ | |
.circle{ | |
height: 100px; | |
width: 50px; | |
position: relative; | |
top: 0; | |
left: 0; | |
background: white; | |
} | |
.circle:hover:before, .circle:hover:after{ | |
transform: rotate(45deg); | |
opacity: 1; | |
} | |
.circle:before{ | |
content: ''; | |
height: 98px; | |
width: 98px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: -1; | |
border: 1px red solid; | |
border-color: red red transparent transparent; | |
border-radius: 50%; | |
transform: rotate(-135deg); | |
transition: transform 5s ease-in; | |
} | |
.circle:after{ | |
content: ''; | |
height: 98px; | |
width: 98px; | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 1; | |
border: 1px red solid; | |
border-color: transparent transparent red red; | |
opacity: 0; | |
border-radius: 50%; | |
transform: rotate(-135deg); | |
transition: transform 5s 5s ease-out, opacity .1s 5s; | |
} |
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="circle"></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