Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="camera">
	<div class="upper-part"></div>
	<div class="frame"></div>
	<div class="lens">
		<div class="reflections">
					<div class="reflection"></div>
					<div class="reflection2"></div>
			</div>
	</div>
	<div class="glass"></div>
	<div class="view-box">
	<div class="view-lens">
				<div class="reflections2">
					<div class="reflection2"></div>
					<div class="reflection3"></div>
			</div>
	</div>
	</div>
	<div class="right1"></div>
	<div class="rainbow">
		<pink></pink>
		<red></red>
		<orange></orange>
		<yellow></yellow>
		<green></green>
		<blue></blue>
		<iceblue></iceblue>
	</div>
	<div class="bottom1"></div>
	<div class="bottom2"></div>
</div>
              
            
!

CSS

              
                body{
	background: whitesmoke;
}
.camera{
    position: absolute;
    margin-left: 35%;
    top:30%;
}
.upper-part{
	position: absolute;
	background:#555765;
	width: 100px;
	height: 8px;
	top: -7px;
	border-radius: 10px 10px / 20px 20px 0 0;
	left: 90px;
}
.frame{
	background: #f9f9fb;
	-webkit-clip-path: polygon(4% 0, 97% 1%, 100% 100%, 0% 100%);
	clip-path: polygon(4% 0, 97% 1%, 100% 100%, 0% 100%);
	width: 278px;
	left: 1px;
	height: 140px;
	position: absolute;
	 box-shadow:0px -100px 500px 80px rgba(255,255,255,0.2),
    0px -130px 800px 30px rgba(255,140,30,0.1),
    inset 0px -11px 30px rgba(55,45,35,0.6),
    inset 0px -10px 100px #d9d8d4,
    inset 0px -1px 1px rgba(255,255,255,0.4),
    inset 0px 20px 3px rgba(255,255,255,0.2),
    0px 17px 27px rgba(0,0,0,0.7),
    0px 4px 3px rgba(0,0,0,0.8),
    -2px -2px 2px rgba(0,0,0,0.5),
    inset 1px 1px 1px rgba(255,255,255,0.5),
    inset 0px 2px 2px rgba(0,0,0,0.2),
    inset 1px 0px 2px rgba(0,0,0,0.4),
    inset -1px 0px 2px rgba(0,0,0,0.4);
}
.frame::after{
	width: 52px;
	border-radius: 2px;
	box-shadow: inset -2px 2px 2px #353f59;
	height: 20px;
	background:#171b2c;
	content:"OneStep";
	padding-left: 2px;
	padding-top: 8px;
	color:#d9d9e6;
	font-size: 0.7em;
	font-weight: bolder;
	font-style: italic;
	left: 25px;
	z-index: 99;
	top: 20px;
	position: absolute;
}
.frame::before{
	width: 35px;
	height: 35px;
	background:#e32c21;
	border-radius: 50%;
	border: 3px solid #f4eeed;
	box-shadow: -3px 3px 10px #9c9b8f,
		inset -1px 2px 2px #541e1c;
	content:"";
	left: 30px;
	z-index: 99;
	top: 60px;
	position: absolute;
}
.lens{
	position: absolute;
	width: 90px;
	overflow: hidden;
	display: block;
	-webkit-background-size: 100% 100%;  
  box-shadow:inset 0 0 0 1000px rgba(152, 160,  202, .1), inset -55px -55px 100px  rgba(0,0,0,.7), inset -3px -3px 3px  rgba(0,0,0,.7), 10px 10px 50px  rgba(0,0,0,.5),0 0 5px rgba(0,0,0,.26),  inset -2px -100px 49px rgba(90,90,90,.49),  inset 0 0 0 32px rgba(138,138,138,.34);
	border: 3px solid #d8d9e5;
	background-size:100% 100% ;
  background-repeat: no-repeat;
  background-position: center;
	height: 90px;
	background-color: black;
  background-image: radial-gradient(53% 53%,  #36404a 0%, #131212 7%, #000 9%, #313131 12%, #030303 13%, #171717 13%, #262626 14%, #000 20%, #0c0c0c 21%, #222 22%, #2d374c 23%, #252525 26%, #212434 35%, #262732 38%, #1d1e26 45%, #000 55%, #000 59%, #191919 64%, #3f3f3f 66%, #000 77%, #1c1c1c 77%, #7d7d7d 78%, #878787 84%, #c4cacf 85%, #c4ccd1 100%);
	left: 100px;
	top: 15px;
	border-radius: 50%;
	z-index:9999;
}
.view-lens{
	position: absolute;
	width: 30px;
	overflow: hidden;
	display: block;
	-webkit-background-size: 100% 100%;  
  box-shadow:inset 0 0 0 1000px rgba(152, 160,  202, .1), inset -55px -55px 100px  rgba(0,0,0,.7), inset -3px -3px 3px  rgba(0,0,0,.7), 10px 10px 50px  rgba(0,0,0,.5),0 0 5px rgba(0,0,0,.26),  inset -2px -100px 49px rgba(90,90,90,.49),  inset 0 0 0 32px rgba(138,138,138,.34);
	background-size:100% 100% ;
  background-repeat: no-repeat;
  background-position: center;
	height: 30px;
	background-color: black;
  background-image: radial-gradient(53% 53%,  #36404a 0%, #131212 7%, #000 9%, #313131 12%, #030303 13%, #171717 13%, #262626 14%, #000 20%, #0c0c0c 21%, #222 22%, #2d374c 23%, #252525 26%, #212434 35%, #262732 38%, #1d1e26 45%, #000 55%, #000 59%, #191919 64%, #3f3f3f 66%, #000 77%, #1c1c1c 77%, #7d7d7d 78%, #878787 84%, #c4cacf 85%, #c4ccd1 100%);
	left: 15px;
	top: 15px;
	border-radius: 50%;
}
.reflections2{
		position: absolute;
		width: 40px;
		height: 40px;
		background: transparent;
		border-radius: 50%;
		overflow: hidden;
		transform-origin: bottom center;
		transform: rotatey(-20deg) rotatez(-1deg);
		z-index: 999999;
		-webkit-filter: blur(0.75px);
		margin-left: 2px;
		top: -3px;
	}
	.reflection2{
		background: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.95));
		right: 0px;
		height: 16px;
		position: relative;
		width: 6px;
		top: 2px;
		float: right;
		transform-origin: center center;
		transform: rotate(-126deg) skew(1deg);
	}
	.reflection3{
		height: 9px;
		position: relative;
		width: 8px;
		float: right;
		top: 0px;
		transform-origin: center center;
		transform: rotate(51deg);
		perspective: 350px;
		background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.35));
		right: 0px;
}
.view-box{
		left: 204px;
	  position:absolute;
		top: 10px;
		width: 60px;
		height: 60px;
		border-radius: 15px / 100px;
		background: radial-gradient(ellipse at center, rgba(76,76,76,1) 0%, rgba(44,44,44,1) 0%, rgba(89,89,89,0.96) 12%, rgba(102,102,102,0.91) 25%, rgba(71,71,71,0.86) 39%, rgba(0,0,0,0.81) 51%, rgba(76,76,76,0.81) 52%, rgba(17,17,17,0.78) 60%, rgba(43,43,43,0.72) 76%, rgba(28,28,28,0.66) 91%, rgba(19,19,19,0.63) 100%);
	box-shadow:inset 2px 2px 4px black;
}
.glass {
	 background-color: #fff;
	 opacity: 0.3;
	 width: 60px;
	 left: 199px;
	 top: 15px;
	 height: 20px;
	 position: absolute;
	 z-index: 99;
	 transform: rotate(-45deg);
}
 .glass:after {
	 background-color: #fff;
	 width: 50px;
	 height: 50px;
	 position: absolute;
	 border-radius: 50%;
	 left: 199px;
	 top: 10px;
	 opacity: 0.5;
}
.right1::before{
	width: 25px;
	height: 25px;
	background:#131a29;
	border-radius: 50%;
	border-left: 3px solid #393c42;
	border-top: 3px solid #393c42;
  border-bottom: 1px solid #393c42;
	box-shadow: -3px 3px 10px #9c9b8f,2px 0px 1px #1b1a21,
		inset 5px 4px 10px #6c7081;
	content:"";
	left: 210px;
	z-index: 99;
	top: 80px;
	position: absolute;
}
.rainbow{
	position: absolute;
	left: 4px;
}
pink{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #e562b2;
	left: 130px;
	top: 108px;
	z-index: 99;
}
red{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #ef574d;
	left: 134px;
	top: 108px;
	z-index: 99;
}
orange{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #fbc24c;
	left: 138px;
	top: 108px;
	z-index: 99;
}
yellow{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #f9f34d;
	left: 142px;
	top: 108px;
	z-index: 99;
}
green{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #aed043;
	left: 146px;
	top: 108px;
	z-index: 99;
}
blue{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #3a89df;
	left: 150px;
	top: 108px;
	z-index: 99;
}
iceblue{
	position: absolute;
	opacity: 0.8;
	width: 4px;
	height: 60px;
	background: #cfd8e1;
	left: 154px;
	top: 108px;
	z-index: 99;
}
.reflections{
	position: absolute;
	width: 120px;
	height: 120px;
	background: transparent;
	border-radius: 50%;
	overflow: hidden;
	margin-left: -12px;
	margin-top: 18px;
	transform-origin: bottom center;
	transform: rotatey(-20deg) rotatez(-1deg);
  z-index: 999999;
	filter: blur(0.75px);
  -webkit-filter: blur(0.75px);
}
.reflection{
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0.65));
	background: -webkit-linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0.65));
	right: 0px;
  height: 39px;
	position: relative;
	width: 8px;
	top: 4px;
	float: right;
	transform-origin: center center;
	transform: rotate(-126deg) skew(1deg);
}
.reflection2{
	height: 31px;
	position: relative;
	width: 14px;
	float: right;
	top: 0px;
	transform-origin: center center;
	transform: rotate(51deg);
	perspective: 320px;
	background: lineargradient(rgba(255,255,255,0.25), rgba(255,255,255,0.35));
	background: -webkit-linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.35));
  right: 20px;
}
.bottom1{
	clip-path: polygon(11% 0, 90% 2%, 100% 100%, 0% 100%);
  background: #f9f9fb;
	width: 350px;
  height: 50px;
	left: -36.5px;
	top: 118px;
	position: absolute;
	box-shadow:
				inset 0px -1px 30px #bcbab8,
				0px 4px 0px #d9d7d3,
				-2px -2px 2px #d9d7d3,
				inset 10px 1px 100px #d9d7d3,
				inset 0px 2px 200px #d9d7d3,
				inset 1px 0px 2px #d9d7d3,
				inset -1px 0px 2px #d9d7d3,inset -5px 1px 5px 2px rgba(0,0,0,0.75), inset 5px -10px 1px 2px #686667,inset 2px -13px 5px 0px rgba(0,0,0,0.75);
}
.bottom2{
	clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);	
	background:#0f1124;
	width: 350px;
  height: 62px;
	left: -36.5px;
	top: 168px;
	position: absolute;
	box-shadow:0px -100px 500px 80px rgba(255,255,255,0.2),
    0px -130px 800px 30px rgba(255,140,30,0.1),
    inset 0px -11px 30px #545164,
    inset 0px -10px 10px #545164,
    inset 0px -1px 1px rgba(255,255,255,0.4),
    inset 0px 10px 3px #171b2c,
    0px 17px 27px rgba(0,0,0,0.7),
    0px 4px 3px rgba(0,0,0,0.8),
    -2px -2px 2px rgba(0,0,0,0.5),
    inset 1px 1px 1px rgba(255,255,255,0.5),
    inset 0px 2px 2px rgba(0,0,0,0.2),
    inset 1px 0px 2px rgba(0,0,0,0.4),
    inset -1px 0px 2px rgba(0,0,0,0.4);
}
.bottom2::after{
	width: 300px;
	border-radius: 2px;
	height: 16px;
	background:#67667b;
	letter-spacing: 3px;
	content:"POLAROID LAND CAMERA";
	padding-left: 2px;
	padding-top: 4px;
	color:#d9d9e6;
	font-size: 0.7em;
	font-weight: bolder;
	text-align: center;
	left: 25px;
	z-index: 99;
	box-shadow: -2px -2px 2px #3c3d51, inset -10px -2px 10px grey, 0 2px 0 #555876,0px 7px 0px #848496, -10px 20px 1px #150f27, 10px 20px 1px #150f27, -20px 30px 1px #727185,20px 30px 1px #727185;
	top: 5px;
	position: absolute;
}
              
            
!

JS

              
                
              
            
!
999px

Console