Skip to content

Instantly share code, notes, and snippets.

@jordangray
Created March 6, 2012 00:25
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/1982438 to your computer and use it in GitHub Desktop.
Save jordangray/1982438 to your computer and use it in GitHub Desktop.
Glowing circle
/**
* 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%
);
}
<div id="test"></div>
<div id="test2"></div>
{"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