Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2013 11:40
Show Gist options
  • Save anonymous/7397196 to your computer and use it in GitHub Desktop.
Save anonymous/7397196 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.circle-3d{
position:relative;
width:130px;
height:130px;
background:#222;
Border-radius:50%;
Margin:60px;
}
.circle-3d:before{
Position:absolute;
content:'';
Left:-33px;top:-33px;bottom:-33px;right:-33px;
Background:linear-gradient(90deg, #656565, #ccc);
Border-radius:50%;
Z-index:-2;
Box-shadow:-30px 0 5px -2px #555;
}
.circle-3d:after{
Position:absolute;
Left:-13px;
Top:-13px;
Bottom:-13px;
Right:-13px;
Background:linear-gradient(270deg, #222, #bbb);
Content:'';
Border-radius:50%;
Z-index:-1;
}
body { background:#999; }
.radialgradientbg {
background: -moz-radial-gradient(center, ellipse cover, #4c1113 0%, #16040a 100%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#4c1113), color-stop(100%,#16040a)); /* Chrome,Safari4+ */
background: -webkit-radial-gradient(center, ellipse cover, #4c1113 0%,#16040a 100%); /* Chrome10+,Safari5.1+ */
}
<div class="circle-3d radialgradientbg"></div>
// alert('Hello world!');
{"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