Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created April 21, 2012 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordangray/2433080 to your computer and use it in GitHub Desktop.
Save jordangray/2433080 to your computer and use it in GitHub Desktop.
Glowing circle
/**
* Glowing circle
*/
body {
background: #047;
}
div {
float: left;
width: 50px;
height: 50px;
}
#test {
border: 6px 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) 40%,
rgba(255,255,255,1) 50%,
rgba(255,255,255,1) 56%,
rgba(255,255,255,0) 65%
);
}
<div id="test"></div>
<div id="test2"></div>
{"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