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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <div id="camera">
    <div id="flash"></div>
    <div id="button"></div>
    <div id="lens"></div>
</div>
            
          
!
            
              		*, *:after, *:before {
		    -webkit-box-sizing: border-box;
		    -moz-box-sizing: border-box;
		    box-sizing: border-box;
		}
		body {
		    margin:0;
		    padding: 0;
		    font-size: 16px;
		    background:  #245f58;
		}
		#camera {
		    position: relative;
		    margin: 200px auto;
		    width: 500px;
		    height: 300px;
		    background: -o-radial-gradient(center, ellipse cover, #90c0e4 0%,#0a72a7 100%);
			  background: -moz-radial-gradient(center, ellipse cover, #90c0e4 0%,#0a72a7 100%);
			  background: -webkit-radial-gradient(center, ellipse cover, #90c0e4 0%,#0a72a7 100%);
			  background: radial-gradient(center, ellipse cover, #90c0e4 0%,#0a72a7 100%);

		 
		    -webkit-border-radius: 10px;
		    -moz-border-radius: 10px;
		    border-radius: 10px;
		    border-top: solid 50px #ECF0F1;
		    border-bottom: solid 50px #ECF0F1;
		}
		#camera:before {
		    position: absolute;
		    content:" ";
		    top: -35px;
		    left: 35px;
		    height: 20px;
		    width: 20px;
		    border-radius: 20px;
		    background: #f70e53;
		    box-shadow: 0 0 1px 2px rgba(0,0,0,.5), 
		    			0 1px 2px rgba(0,0,0,.5),
		    			0 2px 3px rgba(0,0,0,.5);
		}
		#camera:after{
			position: absolute;
			content: " ";
			width: 20px;
			height: 50px;
			border: 10px solid #ECF0F5;
			border-bottom-color:  #FF5C33;
			border-right: none;
			top: -30px;
			left: -20px;
			border-radius: 10px 0 0 10px;
		}
		#flash {
		    position: absolute;
		    top: -120px;
		    left: 0;
		    right: 0;
		    margin: auto;
		    width: 180px;
		    height: 70px;
		    background: transparent;
		    border: solid 30px #ECF0F1;
		    border-bottom: none;
		    border-radius: 15px 15px 0 0;
		}
		#lens {
		    width: 250px;
		    height: 250px;
		    background: #2980B9;
		    border: solid 40px #fff;
		    border-radius: 50%;
		    position: absolute;
		    top: 0;
		    left: 0;
		    right: 0;
		    bottom: 0;
		    margin: auto;
		    -webkit-box-shadow: inset 0 0 0 20px rgba(52, 152, 219, .5), inset 0 3px 0 3px rgba(0, 0, 0, .5), 0 4px 2px 0 rgba(0, 0, 0, .3);
		    -moz-box-shadow: inset 0 0 0 20px rgba(52, 152, 219, .5), inset 0 3px 0 3px rgba(0, 0, 0, .5), 0 4px 2px 0 rgba(0, 0, 0, .3);
		    box-shadow: inset 0 0 0 20px rgba(52, 152, 219, .5), inset 0 3px 0 3px rgba(0, 0, 0, .5), 0 4px 2px 0 rgba(0, 0, 0, .3);

		    -webkit-transition: -webkit-transform 1s bezier(0.62, 0.29, 0.62, 0.31);;
		    -moz-transition: -moz-transform 1s bezier(0.62, 0.29, 0.62, 0.31);;
		    -ms-transition: -ms-transform 1s bezier(0.62, 0.29, 0.62, 0.31);;
		    -o-transition: -o-transform 1s bezier(0.62, 0.29, 0.62, 0.31);;
		    transition: transform 1s bezier(0.62, 0.29, 0.62, 0.31);;
           
		}
		#button {
		    width: 50px;
		    height: 30px;
		    background: #ECF0F1;
		    position: absolute;
		    top: -80px;
		    right: 50px;
		    margin: auto;
		    border-radius: 10px 10px 0 0;
		    cursor: pointer;
		}
		#button:before{
			position: absolute;
			top: 0;left: 0;right: 0; bottom:0;margin: auto;
			content: "";
			width: 5px;
			height: 10px;
			background-color: #245f58;
		}
		#button:after{
			position: absolute;
			content: "";
			width: 0;height: 0;
			border-top: 10px solid #245f58;
			border-left: 10px solid transparent;
			border-right: 10px solid transparent;
			left: 0;right: 0;bottom: 0;top: 0;
			margin-left: auto;
			margin-right: auto;
			margin-top: 20px;
			
		}

		#button:active, #button:focus {
		    -webkit-transform: translateY(5px);
		    -moz-transform: translateY(5px);
		    -ms-transform: translateY(5px);
		    -o-transform: translateY(5px);
		    transform: translateY(5px);
		}
		#button:active ~ #lens {
		    -webkit-transform: scale(1.2);
		    -moz-transform: scale(1.2);
		    -ms-transform: scale(1.2);
		    -o-transform: scale(1.2);
		    transform: scale(1.2);
		}
/****************** Updates*****************/
	
		/* Newly added corners to flash */	
		#flash:before{
			position: absolute;
			content: "";
			top: -30px;
			left: -55px;
			border-left: 30px solid transparent;
			border-bottom: 70px solid  #ECF0F1;
			border-radius: 0 20px 0 0 ;

		
		}		
		#flash:after{
				position: absolute;
				content: "";
				top: -30px;
				right: -55px;
				border-right: 30px solid transparent;
				border-bottom: 70px solid  #ECF0F1;
				border-radius: 20px  0 0 0 ;
			}
/********************************************/	
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console