Created
March 6, 2012 00:25
-
-
Save jordangray/1982438 to your computer and use it in GitHub Desktop.
Glowing circle
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
/** | |
* Glowing circle | |
*/ | |
body { | |
background: #047; | |
} | |
div { | |
float: left; | |
width: 300px; | |
height: 300px; | |
} | |
#test { | |
border: 10px solid #fff; | |
border-radius: 160px; | |
box-shadow: | |
0 0 20px #fff, | |
0 0 15px #fff, | |
0 0 10px #fff, | |
0 0 5px #fff, | |
0 0 1px #fff, | |
0 0 1px #fff, | |
inset 0 0 1px #fff, | |
inset 0 0 1px #fff, | |
inset 0 0 1px #fff, | |
inset 0 0 5px #fff, | |
inset 0 0 10px #fff, | |
inset 0 0 15px #fff, | |
inset 0 0 20px #fff | |
; | |
} | |
#test2 { | |
background: radial-gradient( | |
center, | |
ellipse cover, | |
rgba(255,255,255,0) 46%, | |
rgba(255,255,255,1) 50%, | |
rgba(255,255,255,1) 56%, | |
rgba(255,255,255,0) 60% | |
); | |
} |
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 id="test"></div> | |
<div id="test2"></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
{"view":"split","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment