cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <link href='https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic'
rel='stylesheet' type='text/css'>
<div class="wrapper">
     <h1>Pure #css3 lens icon</h1>

    <div class="lenscontainer">
        <div class="inner1">
            <div class="inner2">
                <div class="inner3">
                    <div class="inner4">
                        <div class="inner5">
                            <div class="inner6">
                                <div class="inner7">
                                    <div class="inner8">
                                        <!-- here starts the magic -->
                                        <div class="inner9">
                                            <div class="gloss"></div>
                                            <div class="inner10"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
            
          
!
            
              body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin:0;
    padding:0;
}
body {
    margin:0;
    background-image: #af86b5;
    background-image: -moz-radial-gradient(center, ellipse cover, #af86b5 0%, #644a68 100%);
    background-image: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #af86b5), color-stop(100%, #644a68));
    background-image: -webkit-radial-gradient(center, ellipse cover, #af86b5 0%, #644a68 100%);
    background-image: -o-radial-gradient(center, ellipse cover, #af86b5 0%, #644a68 100%);
    background-image: -ms-radial-gradient(center, ellipse cover, #af86b5 0%, #644a68 100%);
    background-image: radial-gradient(ellipse at center, #af86b5 0%, #644a68 100%);
    
}
*, body, button, input, textarea, select {
    text-rendering:optimizeLegibility;
    font-size:100%;
}
.wrapper {
    width:800px;
    margin:10px auto;
    display:block;
    height:auto;
    text-align:center;
}
.lenscontainer {
    width: 500px;
    margin:10px auto;
    background: #f1f1f1;
    background: -moz-radial-gradient(center, ellipse cover, #f1f1f1 0%, #cccacb 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f1f1f1), color-stop(100%, #cccacb));
    background: -webkit-radial-gradient(center, ellipse cover, #f1f1f1 0%, #cccacb 100%);
    background: -o-radial-gradient(center, ellipse cover, #f1f1f1 0%, #cccacb 100%);
    background: -ms-radial-gradient(center, ellipse cover, #f1f1f1 0%, #cccacb 100%);
    height: 500px;
    display: block;
    border-radius: 50%;
    border:1px solid #919191;
    z-index: 10;
    position: relative;
   -webkit-animation-duration: 1.8s;
	-webkit-transform-origin:50% 50%;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
  -webkit-animation-name: tremble;
  
}
h1 {
    font-weight:100;
    font-family:'Lato', sans-serif;
    font-size:69px;
    margin-bottom:10px;
    font-weight:light;
    line-height:74px;
    color:#333;
    margin-top: 5px;
}

.inner1 {
    width: 420px;
    height: 420px;
    display: block;
    border-radius: 50%;
    z-index:2;
    background: #979797;
    background: -moz-radial-gradient(center, ellipse cover, #979797 0%, #5e5e5e 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #979797), color-stop(100%, #5e5e5e));
    background: -webkit-radial-gradient(center, ellipse cover, #979797 0%, #5e5e5e 100%);
    background: -o-radial-gradient(center, ellipse cover, #979797 0%, #5e5e5e 100%);
    background: -ms-radial-gradient(center, ellipse cover, #979797 0%, #5e5e5e 100%);
    margin:40px auto;
    border:0.7px solid #ffffff;
    z-index:10;
}
.inner2, .inner3, .inner4 {
    background: #979797;
    background-image: -webkit-linear-gradient(120deg, #333, #888);
    background-image: -moz-linear-gradient(120deg, #333, #888);
    background-image: -o-linear-gradient(120deg, #333, #888);
    background-image: linear-gradient(120deg, #333, #888);
    margin: 10px;
    -moz-box-shadow:inset 0px 0px 10px 5px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow:inset 0px 0px 10px 5px rgba(0, 0, 0, 0.75);
    box-shadow:inset 0px 0px 10px 5px rgba(0, 0, 0, 0.75);
    z-index: 10;
}
.inner2 {
    width: 400px;
    height: 400px;
    display: inline-block;
    border-radius: 50%;
    z-index: 10;
}
.inner3 {
    width: 380px;
    height: 380px;
    display: inline-block;
    border-radius: 50%;
    -moz-box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    -webkit-box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    margin: 10px;
    z-index: 10;
}
.inner4 {
    width: 360px;
    height: 360px;
    display: inline-block;
    border-radius: 50%;
    -moz-box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    -webkit-box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    box-shadow:inset 0px 0px 0px 1px rgba(104, 104, 104, 0.90);
    margin: 10px;
    z-index: 10;
}
.inner5 {
    width: 340px;
    height: 340px;
    display: inline-block;
    border-radius: 50%;
    -webkit-box-shadow: inset 0 0 7px 3px rgba(0, 0, 0, .5);
    -moz-box-shadow: inset 0 0 7px 3px rgba(0, 0, 0, .5);
    box-shadow: inset 0 0 7px 3px rgba(0, 0, 0, .5);
    border: solid 1px #000;
    background-image: -webkit-linear-gradient(-50deg, #717171, #0c0c0c);
    background-image: -moz-linear-gradient(-50deg, #717171, #0c0c0c);
    background-image: -o-linear-gradient(-50deg, #717171, #0c0c0c);
    background-image: -ms-linear-gradient(-50deg, #717171, #0c0c0c);
    background-image: linear-gradient(-50deg, #717171, #0c0c0c);
    margin: 10px;
    z-index: 10;
}
.inner6 {
    width: 330px;
    height: 330px;
    display: inline-block;
    border-radius: 50%;
    margin: 5px;
    background-image: -webkit-linear-gradient(120deg, #9b9b9b, #0c0c0c);
    background-image: -moz-linear-gradient(120deg, #9b9b9b, #0c0c0c);
    background-image: -o-linear-gradient(120deg, #9b9b9b, #0c0c0c);
    background-image: -ms-linear-gradient(120deg, #9b9b9b, #0c0c0c);
    background-image: linear-gradient(120deg, #9b9b9b, #0c0c0c);
    z-index: 10;
}
.inner7 {
    width: 320px;
    height: 320px;
    display: inline-block;
    border-radius: 50%;
    margin: 5px;
    opacity:0.48;
    background-image: -webkit-linear-gradient(120deg, #424242, #0c0c0c);
    background-image: -moz-linear-gradient(120deg, #424242, #0c0c0c);
    background-image: -o-linear-gradient(120deg, #424242, #0c0c0c);
    background-image: -ms-linear-gradient(120deg, #424242, #0c0c0c);
    background-image: linear-gradient(120deg, #424242, #0c0c0c);
    z-index: 10;
}
.inner8 {
    width: 310px;
    height: 310px;
    display: inline-block;
    border-radius: 50%;
    margin: 5px;
    -webkit-box-shadow: 1px 1px 5px #000;
    -moz-box-shadow: 1px 1px 5px #000;
    box-shadow: 1px 1px 5px #000;
    background-image: -webkit-linear-gradient(120deg, #292929, #000);
    background-image: -moz-linear-gradient(120deg, #292929, #000);
    background-image: -o-linear-gradient(120deg, #292929, #000);
    background-image: -ms-linear-gradient(120deg, #292929, #000);
    background-image: linear-gradient(120deg, #292929, #000);
    border:0.8px solid grey;
    z-index: 10;
}
.inner9 {
    width: 280px;
    height: 280px;
    display: inline-block;
    border-radius: 50%;
    margin: 15px;
    -webkit-box-shadow: -1px 1px rgba(81, 81, 81, .75), inset 0 0 13px rgba(0, 0, 0, .75), inset 0 0 73px rgba(87, 99, 126, .75), -150px -150px 40px rgba(220, 255, 255, .1);
    ;
    -moz-box-shadow: -1px 1px rgba(81, 81, 81, .75), inset 0 0 13px rgba(0, 0, 0, .75), inset 0 0 73px rgba(87, 99, 126, .75);
    box-shadow: -1px 1px rgba(81, 81, 81, .75), inset 0 0 13px rgba(0, 0, 0, .75), inset 0 0 73px rgba(87, 99, 126, .75);
    background-image: -webkit-linear-gradient(120deg, #ff9ccf 1%, #2B0F1D);
    background-image: -moz-linear-gradient(120deg, #ff9ccf 1%, #2B0F1D);
    background-image: -o-linear-gradient(120deg, #ff9ccf 1%, #2B0F1D);
    background-image: -ms-linear-gradient(120deg, #ff9ccf 1%, #2B0F1D);
    background-image: linear-gradient(120deg, #ff9ccf 1%, #2B0F1D);
    z-index: 10;
}
.inner10 {
    width: 120px;
    height: 120px;
    display: inline-block;
    border-radius: 50%;
    margin: 80px;
    background: #ed5099;
    background: -moz-radial-gradient(center, ellipse cover, #ed5099 0%, #2b0f1d 100%);
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #ed5099), color-stop(100%, #2b0f1d));
    background: -webkit-radial-gradient(center, ellipse cover, #ed5099 0%, #2b0f1d 100%);
    background: -o-radial-gradient(center, ellipse cover, #ed5099 0%, #2b0f1d 100%);
    background: -ms-radial-gradient(center, ellipse cover, #ed5099 0%, #2b0f1d 100%);
    background: radial-gradient(ellipse at center, #ed5099 0%, #2b0f1d 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed5099', endColorstr='#2b0f1d', GradientType=1);
    -webkit-box-shadow: inset 0 50px 20px -30px #ff9cff, 0 -20px 10px -20px #ff9cff, inset 0 0 40px 5px #ff9cff, 0 0 20px 5px #ff9cff, 0 0 20px 5px rgb(153, 24, 76);
    -webkit-background-clip: padding-box;
    z-index: 10;
    -webkit-background-clip: padding-box;
}
div.gloss {
    -webkit-transform: rotate(-58deg);
    -moz-transform: rotate(-58deg);
    -ms-transform: rotate(-58deg);
    -o-transform: rotate(-58deg);
    transform: rotate(-58deg);
    width: 280px;
    height: 140px;
    background-color: rgba(255, 255, 255, 0);
    background-image: -webkit-linear-gradient(bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    background-image: -moz-linear-gradient(bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    background-image: -o-linear-gradient(bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    background-image: -ms-linear-gradient(bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    background-image: linear-gradient(to top, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    position: absolute;
    border-radius: 0 0 280px 280px;
    -moz-border-radius: 0 0 280px 280px;
    -webkit-border-radius: 0 0 280px 280px;
    margin-top: 106px;
    margin-left: 60px;
}
.inner2:before {
    content:"";
    position: absolute;
    top: 103px;
    left: 107px;
    width: 31px;
    height: 28px;
    opacity: 0.6;
    background-color: #fff;
    -webkit-transform: rotate(46deg);
    -moz-transform: rotate(46deg);
    -o-transform: rotate(46deg);
    transform: rotate(46deg);
    z-index: 1;
}
.inner3:before {
    content:"";
    position: absolute;
    top: 133px;
    left: 90px;
    width: 31px;
    height: 5px;
    opacity: 0.6;
    background-color: #fff;
    -webkit-transform: rotate(44deg);
    -moz-transform: rotate(44deg);
    -o-transform: rotate(44deg);
    transform: rotate(44deg);
    z-index: 1;
}
/*Original trembling effect as posted in my previous pen
https://codepen.io/TheodoreVorillas/pen/knuze

*/

@-webkit-keyframes tremble {
	0% { -webkit-transform: translate(2px, 1px) rotate(0deg);}
	10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
	20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
	30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
	40% { -webkit-transform: translate(5px, -1px) rotate(1deg); }
	50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
	60% { -webkit-transform: translate(-2px, 1px) rotate(0deg); }
	70% { -webkit-transform: translate(6px, 2px) rotate(-1deg); }
	80% { -webkit-transform: translate(-1px, -3px) rotate(1deg); }
	90% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
	100% { -webkit-transform: translate(5px, -2px) rotate(-1deg); }
}
            
          
!
            
              //no need for js
/*
Follow me for more infos and demos

https://twitter.com/vorillas

Also check out my previous pens

Trembling text
https://codepen.io/TheodoreVorillas/pen/knuze

My very own #Twitter
https://codepen.io/TheodoreVorillas/pen/mgjvh

Optical Illusion gears
https://codepen.io/TheodoreVorillas/pen/euFhH
*/
            
          
!
999px
Loading ..................

Console