Created
March 22, 2014 04:31
-
-
Save kejun/9701090 to your computer and use it in GitHub Desktop.
Untitled
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
html,body { | |
margin: 0; | |
min-height: 100%; | |
} | |
body:after { | |
content: ""; | |
position: absolute; | |
z-index: 1; | |
left: 50%; | |
margin-left: -1px; | |
border-left: 1px solid blue; | |
height: 100%; | |
} | |
body:before { | |
content: ""; | |
position: absolute; | |
z-index: 1; | |
border-top: 1px solid blue; | |
top: 50%; | |
margin-top: -1px; | |
width: 100%; | |
} | |
.dot { | |
position: absolute; | |
top: calc(50% - 1em); | |
left: calc(50% - 1em); | |
width: 0; | |
height: 0; | |
border: 1em solid blue; | |
margin: 0; | |
border-radius: 50%; | |
background: blue; | |
transition: all .5s; | |
} | |
.dot:hover { | |
width: 10em; | |
height: 10em; | |
border-width: 1px; | |
background: transparent; | |
margin: -4em 0 0 -4em; | |
} |
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="dot" /> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment