Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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 id="video">
	<video autoplay="true"></video>
</div>
<div class="camera">
	<div class="top">
		<div class="flash">
			<div class="flash-lines"></div>
			<div class="inside-flash"></div>
			<div class="light none"></div>
		</div>
		<div class="on-off-button"></div>
		<div class="lens-div">
			<div class="lens"></div>
			<div class="inside-lens"></div>
		</div>
		<div class="circle"></div>
		<div class="view-finder">
			<div class="reflection"></div>
			<div class="glass"></div>
		</div>
		<div class="minus-plus-button">
			<div class="minus"></div>
			<div class="plus"></div>
		</div>
		<div class="brand-name">
			<span>One</span>
			<span>Step</span>
			<span class="number">2</span>
		</div>
		<div class="click-button">
			<div class="reflection"></div>
		</div>
		<div class="curve"></div>
		<div class="slide">
			<div class="first-part"></div>
			<div class="second-part"></div>
			<div class="third-part"></div>
		</div>
		<div class="background"></div>
	</div>
	<div class="bottom">
		<div class="second-part"></div>
		<div class="colors"></div>
		<div class="logo">Polaroid</div>
		<div class="camera-type">I-TYPE CAMERA</div>
	</div>
	<div class="back-div">
		<div class="first-part"></div>
		<div class="second-part"></div>
	</div>
	<div class="polaroid">
	<div id="shadow" class="none"></div>
		<img class="none"/>
		
		<canvas id="canvas" class="none" width="640" height="480">
		</canvas>
	</div>
	
</div>
<div class="table"></div>
			

              
            
!

CSS

              
                *{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

%pseudo_base{
  content: '';
  display: inline-block;
  position: absolute;
}

$background-image: url("https://www.transparenttextures.com/patterns/beige-paper.png");

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

li{
	list-style: none;
}
body{
	width: 100vw;
	background: #D9D8DD;
}
#video{
	position: absolute;
	left: 30px;
	top: 30px;
	width: 120px;
	height: 100px;
	border-radius: 10px;
	-webkit-box-shadow:0 0 2px 2px #6E6A67,
						 0 0 2px 10px #333031,
						 0 0 3px 15px #757571,
						 0 0 2px 20px #302624;
	box-shadow:0 0 2px 2px #6E6A67,
						 0 0 2px 10px #333031,
						 0 0 3px 15px #757571,
						 0 0 2px 20px #302624;
	-moz-box-shadow:0 0 2px 2px #6E6A67,
						 0 0 2px 15px #333031,
						 0 0 3px 20px #757571,
						 0 0 2px 25px #302624;
	video{
		position: relative; 
    width: 100%; 
    height: 100%;
		object-fit: fill;
    background-size: cover;
		border-radius: 10px;
	}
}
.camera{
	position: absolute;
	top: 100px;
	left: 350px;
	.top{
		position: relative;
		width: 375px;
		height: 200px;
		background: #DCE1E9;
		border-radius: 30px 30px 
									 10px 0;
		-webkit-box-shadow:
			-6px 0px 2px 0 inset #B8B1B8,
			0 -10px 6px 0 inset #CDD2DE,
			0px 7px 1px 0 inset #D8DAE1,
			25px 1px 0px 0px #B0A5AE
			;
		box-shadow:
			-6px 0px 2px 0 inset #B8B1B8,
			0 -10px 6px 0 inset #CDD2DE,
			0px 7px 1px 0 inset #D8DAE1,
			25px 1px 0px 0px #B0A5AE
			;
		-moz-box-shadow:
			-6px 0px 2px 0 inset #B8B1B8,
			0 -10px 6px 0 inset #CDD2DE,
			0px 7px 1px 0 inset #D8DAE1,
			25px 1px 0px 0px #B0A5AE
			;
			&:before, &:after{
				@extend %pseudo_base;
			}
			&:before{
				width: 18px;
				height:20px;
				background: rgb(217,221,231);
				background: linear-gradient(90deg, 																rgba(217,221,231,1) 0%, 
										rgba(176,165,174,1) 100%);
				left: 265px;
				top: 224.7px;
				z-index: 2;
				border-radius: 10% 10% 5px 10px;
				transform: rotate(-5deg);
				filter: drop-shadow(0px 0px 1px rgb(198,196,205,.5), blur(2px));
			}
			&:after{
			background: #B0A5AE;
			width: 125.5px;
			height: 29px;
			top: 205px;
			left: 274px;
			border-radius: 0 0 30px 0;
			transform: skewY(-10.7deg);
			z-index: -1;
			}
			.flash{
				width: 60px;
				height: 100px;
				border:2px solid #5B6072;
				position: relative;
				top: 20px;
				left: 20px;
				background: rgb(255,255,255);
				background: radial-gradient(circle,                       					rgba(255,255,255,1) 0%, 															rgba(192,193,198,1) 100%);
				border-radius: 10px;
				-webkit-box-shadow:0 3px 2px
													 #BDCBDD inset,
													 6px 0px 2px
													 #585A5F inset,
									         2px 0px 3px 															 						 #767B83;
				box-shadow:0 3px 2px
									 #BDCBDD inset,
									 6px 0px 2px
									 #585A5F inset,
									 2px 0px 3px 																 					 #767B83;
				-moz-box-shadow:0 3px 2px
											 #BDCBDD inset,
											 6px 0px 2px
											 #585A5F inset,
											 2px 0px 3px 																 					 #767B83;
				&:before{
					@extend %pseudo_base;
					top: 58px;
					left: -2px;
					width: 20px;
					height:40px;
					border-radius:0 0 0 10px;
					box-shadow: 
						-3px 3px 1px 0px #BAB9BF,
						-5px 5px 4px 0px #EDEFF6;
					-webkit-box-shadow: 
						-3px 3px 1px 0px #BAB9BF,
						-5px 5px 4px 0px #EDEFF6;
					-moz-box-shadow: 
						-3px 3px 1px 0px #BAB9BF,
						-5px 5px 4px 0px #EDEFF6;
				}
				.inside-flash{
					width: 20px;
					height:92px;
					position: relative;
					top: 2px;
					left: 20px;
					border: 1px solid #E1E4E8;
					border-radius: 1px;
					-webkit-box-shadow: -10px -10px 10px inset 															#D6D8DB;
					box-shadow: -10px -10px 10px inset #D6D8DB;
					
					-moz-box-shadow: -10px -10px 10px inset 																#D6D8DB;
					&:before, &:after{
						@extend %pseudo_base;
						width: 6.5px;
						background: rgb(255,255,255);
						background: radial-gradient(circle, 															rgba(255,255,255,1) 0%, 															rgba(192,193,198,1) 100%);
					}
					&:before{
						height: 90px;
						left: 2px;
						border-radius: 1px;
					}
					&:after{
						left: 11px;
						height: 86px;
						border-bottom: 2px solid #646D79;
						border-top: 2px solid #646D79;
					}
				}
				.flash-lines{
					position: relative;
					top: 10px;
					left: 6px;
					width: 15px;
					height: 1px;
					border-top: 1px solid #B9B4AE;
					-webkit-box-shadow:
											0px 3px 0px #B9B4AE,
						          0px 6px 0px #B9B4AE,
											0px 9px 0px #B9B4AE,
											0px 20px 0px #B9B4AE,
											0px 23px 0px #B9B4AE,
											0px 26px 0px #B9B4AE,
											33px 0px 0px #B9B4AE,
											33px 3px 0px #B9B4AE,
											33px 6px 0px #B9B4AE,
											33px 9px 0px #B9B4AE,
											33px 20px 0px #B9B4AE,
											33px 23px 0px #B9B4AE,
											33px 26px 0px #B9B4AE;
					box-shadow: 0px 3px 0px #B9B4AE,
						          0px 6px 0px #B9B4AE,
											0px 9px 0px #B9B4AE,
											0px 20px 0px #B9B4AE,
											0px 23px 0px #B9B4AE,
											0px 26px 0px #B9B4AE,
											33px 0px 0px #B9B4AE,
											33px 3px 0px #B9B4AE,
											33px 6px 0px #B9B4AE,
											33px 9px 0px #B9B4AE,
											33px 20px 0px #B9B4AE,
											33px 23px 0px #B9B4AE,
											33px 26px 0px #B9B4AE;
					-moz-box-shadow:
											0px 3px 0px #B9B4AE,
						          0px 6px 0px #B9B4AE,
											0px 9px 0px #B9B4AE,
											0px 20px 0px #B9B4AE,
											0px 23px 0px #B9B4AE,
											0px 26px 0px #B9B4AE,
											33px 0px 0px #B9B4AE,
											33px 3px 0px #B9B4AE,
											33px 6px 0px #B9B4AE,
											33px 9px 0px #B9B4AE,
											33px 20px 0px #B9B4AE,
											33px 23px 0px #B9B4AE,
											33px 26px 0px #B9B4AE;
					}
				.light{
					position:relative;
					top:-40px;
					left:30px;
					transform:translate(-50%, -50%);
					background: radial-gradient(ellipse 
											at center, 						 																rgba(255,255,255,1) 0%,
										  rgba(255,255,255,0) 100%);
					border-radius:100%;
					animation:1s flash-light;
				}
			}
			.on-off-button{
				width: 20px;
				height: 20px;
				border: 1px solid #B5B5BF;
				border-radius: 50%;
				position: relative;
				top: -70px;
				left: 95px;
				-webkit-box-shadow: 1px 0px 1px 0px 		
														#B5B5BF,
														2px 0px 2px 1px 																			#777580;
				box-shadow: 1px 0px 1px 0px #B5B5BF,
										2px 0px 2px 1px #777580;
				
				-moz-box-shadow: 1px 0px 1px 0px 																			 #B5B5BF,
												 2px 0px 2px 1px 																			 #777580;
				&:before, &:after{
					@extend %pseudo_base;
				}
				&:before{
					width: 13px;
					height: 13px;
					border-radius: 50%;
					border-width: 1.5px 1.5px
												1.5px 1.5px;
					border-style: solid;
					border-color: #ADB2C0 #ADB2C0 																			#ADB2C0 transparent;
					top: 1px;
					left: 1px;
					transform: rotate(45deg);
				}
				&:after{
					height: 8px;
					border-left: 1.5px solid #ADB2C0;
					transform: rotate(-45deg);
					left: 7px;
					top: 3px;
				}
			}
			.lens-div{
				position: relative;
        z-index: 1;
				.lens{
				width: 140px;
				height: 140px;
				background: #464B54;
				border-radius: 50%;
				position: relative;
				top: -100px;
				left: 120px;
				-webkit-box-shadow: 2px 0px 1px 																					inset #595A67,
														-10px 0 5px 																					inset 								                                 rgba(94,112,132,.7),
														10px 0px 10px 																				inset #282B2D,
														3px 0px 2px 3px 																			#18181A,
														18px 0 2px 3px 																				#38363C,
														25px 0 10px 5px 																			#A0959D,
														33px 0 15px 3px 																			#BCAFB2;
				box-shadow: 2px 0px 1px inset 																		#595A67,
										-10px 0 5px inset 																		rgba(94,112,132, .7),
										10px 0px 10px inset 																	#282B2D,
										3px 0px 2px 3px #18181A,
										18px 0 2px 3px #38363C,
										25px 0 10px 5px #A0959D,
										33px 0 15px 3px #BCAFB2;
				
			-moz-box-shadow: 2px 0px 1px inset 													 					 #595A67,
											 -10px 0 5px inset 																		rgba(94,112,132, .7),
											10px 0px 10px 																				inset #282B2D,
											3px 0px 2px 3px 																			#18181A,
											18px 0 2px 3px 																				#38363C,
											25px 0 10px 5px 																			#A0959D,
											33px 0 15px 3px 																			#BCAFB2;
					&:before{
						@extend %pseudo_base;
						background: #9CA7AE;
						width: 20px;
						height: 20px;
						border-radius: 50%;
						top: 40px;
						left: -5px;
						z-index: -1;
						-webkit-box-shadow: 0px 2px 2px 																					inset #D8E1F1,
																-0.5px 0px 
																1px 2px #7D808E;
						box-shadow: 0px 2px 2px inset 																		#D8E1F1,
												-0.5px 0px 1px 2px 																		#7D808E;
						-moz-box-shadow: 0px 2px 2px 																					 inset #D8E1F1,
														 -0.5px 0px 1px 																			 2px #7D808E;
					}
			  }
				.inside-lens{
					width: 40px;
					height: 40px;
					border-radius: 50%;
					position:relative;
					top: -190px;
					left: 185px;
					background: #007968;
					-webkit-box-shadow: -2px 0 1px 3px 																				#595E68,
															5px 0 5px -2px inset 																	#34B1B1,
															6px 0 1px 1px inset 																	#062C26,
															12px 0 4px 4px inset 																	#00534A,
															15px 0 9px 9px inset 																	#0F1815,
															-2px 0 1px 1px inset 																	#20483A,
															-5px -1px 2px 5px 																		#252525,
															-6px -1px 3px 8px 																		#656A75,
															-10px 0px 3px 11px 																		#000000,
															-10px 0 2px 15px 																			#606676,
															-11px 0 3px 18px 																			#050505,
															-12px -1px 2px 21px 																	#606676,
															-13px 0 3px 23px 																			#050505,
															-14px -1px 3px 25px 																	#212227,
															-15px 0 3px 27px 																			#585E6D,
															-17px -1px 2px 30px 																	#171C1D,
															-16px -1px 2px 36px 																	#6E7083,
															-15px -1px 2px 39px 																	#141215;
					box-shadow: -2px 0 1px 3px 																				#595E68,
											5px 0 5px -2px inset 																	#34B1B1,
											6px 0 1px 1px inset 																	#062C26,
											12px 0 4px 4px inset 																	#00534A,
											15px 0 9px 9px inset 																	#0F1815,
											-2px 0 1px 1px inset 																	#20483A,
											-5px -1px 2px 5px 																		#252525,
											-6px -1px 3px 8px 																		#656A75,
											-10px 0px 3px 11px 																		#000000,
											-10px 0 2px 15px 																			#606676,
											-11px 0 3px 18px 																			#050505,
										  -12px -1px 2px 21px 																	#606676,
										  -13px 0 3px 23px 																			#050505,
											-14px -1px 3px 25px 																	#212227,
											-15px 0 3px 27px 																			#585E6D,
											-17px -1px 2px 30px 																	#171C1D,
											-16px -1px 2px 36px 																	#6E7083,
											-15px -1px 2px 39px 																	#141215;
					-moz-box-shadow: -2px 0 1px 3px 																				#595E68,
														5px 0 5px -2px inset 																	#34B1B1,
														6px 0 1px 1px inset 																	#062C26,
														12px 0 4px 4px inset 																	#00534A,
														15px 0 9px 9px inset 																	#0F1815,
														-2px 0 1px 1px inset 																	#20483A,
														-5px -1px 2px 5px 																		#252525,
														-6px -1px 3px 8px 																		#656A75,
														-10px 0px 3px 11px 																		#000000,
														-10px 0 2px 15px 																			#606676,
														-11px 0 3px 18px 																			#050505,
														-12px -1px 2px 21px 																	#606676,
														-13px 0 3px 23px 																			#050505,
														-14px -1px 3px 25px 																	#212227,
														-15px 0 3px 27px 																			#585E6D,
														-17px -1px 2px 30px 																	#171C1D,
														-16px -1px 2px 36px 																	#6E7083,
														-15px -1px 2px 39px 																	#141215;
					&:before, &:after{
						@extend %pseudo_base;
						top: 5px;
						left: 8px;
						width: 15px;
					  height: 19px;
						border-width: 7px 0px 7px 10px;
						border-color: transparent transparent  															transparent
													rgba(47,175,175, .3);
						border-style: solid;
						border-radius: 50% 0 0 50%;
					}
					&:after{
						width: 5px;
						height: 10px;
						border-width: 5px 0 5px 5px;
						top: 11px;
						left: 20px;
				  }
				}
			}
			.circle{
					width: 15px;
				  height: 15px;
					background: #3B3A40;
				  border-radius: 50%;
				  position: relative;
				 	top: -160px;
				  left: 270px;
				  z-index: 1;
					-webkit-box-shadow: 10px 0 2px 0 inset 																		rgba(0,0,0),
															0 0 1.5px 3px #57595E,
															0.5px 0 1px 4px #010001,
															6px 0 1px 5px #252327,
															9px 2px 5px 6px #8B868C;
					box-shadow: 10px 0 2px 0 inset rgba(0,0,0),
											0 0 1.5px 3px #57595E,
											0.5px 0 1px 4px #010001,
											6px 0 1px 5px #252327,
											9px 2px 5px 6px #8B868C;
				-moz-box-shadow: 10px 0 2px 0 inset 																	 rgba(0,0,0),
												 0 0 1.5px 3px #57595E,
												 0.5px 0 1px 4px #010001,
												 6px 0 1px 5px #252327,
												 9px 2px 5px 6px #8B868C;
			}
			.view-finder{
				width: 60px;
				height: 60px;
				position: relative;
				top: -298px;
				left: 300px;
				background: rgba(218,217,222, .5);
				border-radius: 10px;
				-webkit-box-shadow: 
					0 0 2px 2px inset #9F9CA5,
					3px 0 3px 1px inset rgba(153,155,204, .8),
					6px 0 1px 1px inset #C5CBEE,
					13px 0 5px 5px inset rgba(153,154,217, .8),
					14px 0px 01px 5px inset #CED4F0,
					17px 0 10px 5px inset rgba(153,154,217, .8),
					19px 0px 1px 10px inset #CED4F0,
					23px 0 6px 13px inset rgba(184,189,231, .8),
					0 0 2px 1px #3D3A43,
					-3px 0 3px 0 #807983
					;
				box-shadow: 
					0 0 2px 2px inset #9F9CA5,
					3px 0 3px 1px inset rgba(153,155,204, .8),
					6px 0 1px 1px inset #C5CBEE,
					13px 0 5px 5px inset rgba(153,154,217, .8),
					14px 0px 01px 5px inset #CED4F0,
					17px 0 10px 5px inset rgba(153,154,217, .8),
					19px 0px 1px 10px inset #CED4F0,
					23px 0 6px 13px inset rgba(184,189,231, .8),
					0 0 2px 1px #3D3A43,
					-3px 0 3px 0 #807983
					;
				-moz-box-shadow: 
					0 0 2px 2px inset #9F9CA5,
					3px 0 3px 1px inset rgba(153,155,204, .8),
					6px 0 1px 1px inset #C5CBEE,
					13px 0 5px 5px inset rgba(153,154,217, .8),
					14px 0px 01px 5px inset #CED4F0,
					17px 0 10px 5px inset rgba(153,154,217, .8),
					19px 0px 1px 10px inset #CED4F0,
					23px 0 6px 13px inset rgba(184,189,231, .8),
					0 0 2px 1px #3D3A43,
					-3px 0 3px 0 #807983
					;
				.reflection{
					 width: 23px;
					 height: 50px;
					 border-style: solid;
					 border-width: 7px 0px 7px 10px;
					 border-color: transparent transparent  														 transparent
						 						 rgba(241,243,252, .6);
					 position: relative;
					 left: 12px;
					 top: 5px;
					 &:before, &:after{
						@extend %pseudo_base;
						border-color: transparent transparent  															transparent 
													rgba(241,243,252, .6);
						border-style: solid;
					}
					 &:before{
						width: 15px;
						height: 20px;
						border-width: 7px 0px 7px 10px;
						left: 5px;
						top: 0px;
					}
					 &:after{
						width: 5px;
						height: 10px;
						border-width: 5px 0 5px 5px;
						top: 5px;
						left: 18px;
					}
				}
				.glass{
					width: 60px;
					height: 60px;
					background: linear-gradient(90deg, 																rgba(164,166,231,.6) 0%, 															rgba(137,136,196,.6) 17%,
											rgba(112,113,167,.6) 44%, 														rgba(179,167,198,.6) 67%,
											rgba(161,149,176,.3) 80%, 
											rgba(82,73,83,.3) 100%);
					position: relative;
					top: -50px;
					border-radius: 10px;
				}
			}
			.minus-plus-button{
				width: 40px;
				height: 20px;
				position: relative;
				background: #C49E6F;
				top: -285px;
				left: 307px;
				border-radius: 10px;
				-webkit-box-shadow: 4px 0 4px inset #999199,
														6px 0 0px 1px inset 																	#624122,
														10px 0 4px 0px inset 																	#6E4C03;
				box-shadow: 4px 0 4px inset #999199,
										6px 0 0px 1px inset #624122,
										10px 0 4px 0px inset #6E4C03;
				
				-moz-box-shadow: 4px 0 4px inset #999199,
												 6px 0 0px 1px inset #624122,
												 10px 0 4px 0px inset #6E4C03;
				&:before{
					@extend %pseudo_base;
					width: 9px;
					height: 15px;
					background: rgba(246,216,183, .7);
					left: 15px;
					top: 3px;
					border-radius: 50%;
					-webkit-box-shadow:
						-1.5px 0 0 0 #C49E6F, 
						-1px 0  0  1px rgba(246,216,183, .7),
						1.5px 0 1px 1.5px #E3B65A,
						6px 0 1px 2px #AF762C,
						12px 0 2px 2px #905E09;
					box-shadow:
						-1.5px 0 0 0 #C49E6F, 
						-1px 0  0  1px rgba(246,216,183, .7),
						1.5px 0 1px 1.5px #E3B65A,
						6px 0 1px 2px #AF762C,
						12px 0 2px 2px #905E09;
					-moz-box-shadow:
						-1.5px 0 0 0 #C49E6F, 
						-1px 0  0  1px rgba(246,216,183, .7),
						1.5px 0 1px 1.5px #E3B65A,
						6px 0 1px 2px #AF762C,
						12px 0 2px 2px #905E09;
				}
				.minus, .plus{
					width: 8px;
					border-radius: 1px;
					position: relative;
					border: .5px solid #E7E1E8;
				}
				.minus{
					border: .5px solid #E7E1E8;
					-webkit-box-shadow: 0 0 2px 1px #B2A8AD;
					box-shadow: 0 0 2px 1px #B2A8AD;
					-moz-box-shadow: 0 0 2px 1px #B2A8AD;
					top: 10px;
					left: -13px;
				}
				.plus{
					width: 8px;
					top: 7.5px;
					left: 44px;
					-moz-box-shadow:
						          1.5px 0.5px 1px 0.5px #B2A8AD;
					box-shadow: 1.5px 0.5px 1px 0.5px #B2A8AD;
					-webkit-box-shadow: 
											1.5px 0.5px 1px 0.5px #B2A8AD;
					&:before, &:after{
						@extend %pseudo_base;
						height: 3px;
						border: .5px solid #E7E1E8;
						-webkit-box-shadow: 1px 0 1px #B2A8AD;
						box-shadow: 1px 0 1px #B2A8AD;
						-moz-box-shadow: 1px 0 1px #B2A8AD;
						z-index: 2;
					}
					&:before{
						left: 2.3px;
						top: -5.5px;
						border-radius: 1px 1px 0 0;
					}
					&:after{
						border-radius:0 0 1px 1px;
						left: 2.3px;
						top: 1px;
					}
				}
			}
			.brand-name{
				width: fit-content;
				position: relative;
				top: -240px;
				left: 310px;
				color: #787581;
				font-size: 15px;
				font-family: 'Merriweather', serif;
				span:nth-child(1){
					width: fit-content;
					display: block;
					padding-left: 4px;
					margin-bottom: -16px;
				}
				span.number{
					color: #DEC487;
					font-size: 25px;
				}
			}
			.click-button{
				width: 40px;
				height: 40px;
				position: relative;
				top: -290px;
				left: 20px;
				border-radius: 50%;
				background: radial-gradient(circle, 															rgba(231,160,166,1) 0%, 
										rgba(203,88,103,1) 50%);
				-webkit-box-shadow: 
					2px 0px 2px inset #784852,
					-1px 0px 2px 2px #A8949F,
					1px 0px 2px 3px #DDE1E7,
					4px 0px 2px 3px #AFB0B4,
					5px 0px 2px 3px #9C9AA2;
				box-shadow: 
					2px 0px 2px inset #784852,
					-1px 0px 2px 2px #A8949F,
					1px 0px 2px 3px #DDE1E7,
					4px 0px 2px 3px #AFB0B4,
					5px 0px 2px 3px #9C9AA2;
				-moz-box-shadow: 
					2px 0px 2px inset #784852,
					-1px 0px 2px 2px #A8949F,
					1px 0px 2px 3px #DDE1E7,
					4px 0px 2px 3px #AFB0B4,
					5px 0px 2px 3px #9C9AA2;
				z-index: 1;
				&:hover{
					cursor: pointer;
				}
				&:before,&:after{
					@extend %pseudo_base;
				}
				&:before{
						content: "Take a photo!";
						padding: 5px;
						width: 100px;
						height: auto;
						background: #aecee5;
						text-align: center;
						border-radius: 5px;
						left: -130px;
						top: 10px;
						color: gray;
				}
				&:after{
						content: "";
						width: 0px;
						height: 0px;
						border-width: 5px 0 5px 10px;
						border-style: solid;
						border-color: transparent transparent 															transparent #aecee5;
						left: -20px;
						top: 19px;
					}
				.reflection{
					 width: 23px;
					 height: 30px;
		 			 border-left: 		  
							 5px solid rgba(241,243,252, .4);
					 border-radius: 50%;
					 position: relative;
					 left: 3px;
					 top: 5px;
					 &:before, &:after{
						@extend %pseudo_base;
						top: -2px;
						left: 8px;
						width: 15px;
						height: 20px;
						border-width: 7px 0px 7px 10px;
						border-color: 
							transparent transparent  transparent 									rgba(241,243,252, .3);
						border-style: solid;
						border-radius: 50% 0 0 50%;
					}
					 &:after{
						width: 5px;
						height: 10px;
						border-width: 5px 0 5px 5px;
						top: 5px;
						left: 20px;
					}
				}
			}
			.curve{
				width:369px;
				height: 25px;
				background: #B6B4C1;
				position: relative;
				top: -270px;
				left: -46px;
				z-index: 1;
				transform: skewX(-75deg);
				border-radius: 0 0 0 5px;
				-webkit-box-shadow:
									 0 2px 10px 0 inset #B9BEC9,
									 0px 0px 9px 5px inset #CBC6CE,
									 -15px -5px 1px 0px inset #D8DAE3;
				box-shadow:0 2px 10px 0 inset #B9BEC9,
									 0px 0px 9px 5px inset #CBC6CE,
									 -15px -5px 1px 0px inset #D8DAE3;
				-moz-box-shadow:
									0 2px 10px 0 inset #B9BEC9,
									0px 0px 9px 5px inset #CBC6CE,
									-15px -5px 1px 0px inset #D8DAE3;
				&:before, &:after{
					@extend %pseudo_base;
					top: 25px;
					height: 20px;
					transform: skewX(75deg);
					background: #D9DDE7;
				}
				&:before{
					left: 42px;
					width:136px;
					border-radius:0 0 30px 0;
					-webkit-box-shadow: 
											0 1px 2px inset #E5E6EE,
											.5px 3px 2px #19141B,
											2px 2px 1px #DEDFE8;
					box-shadow: 0 1px 2px inset #E5E6EE,
											.5px 3px 2px #19141B,
											2px 2px 1px #DEDFE8;
					
					-moz-box-shadow: 
											0 1px 2px inset #E5E6EE,
											.5px 3px 2px #19141B,
											2px 2px 1px #DEDFE8;
				}
				&:after{
					border-radius:0 0 2px 30px;
					left: 261px;
					width:145px;
					-webkit-box-shadow: 
											0 1px 2px inset #E5E6EE,
											-2px 3px 2px #19141B;
					box-shadow: 0 1px 2px inset #E5E6EE,
											-2px 3px 2px #19141B;
					-moz-box-shadow:
											0 1px 2px inset #E5E6EE,
											-2px 3px 2px #19141B;
				}
			}
			.slide{
					width: 95px;
					height: 10px;
				  position: relative;
					top: -285px;
					left: 55px;
					border-radius: 20% 20% 0 0 ;
					transform: skewX(-60deg);
					-webkit-box-shadow: 
											0px 4px 1px inset #D9DCE9,
											6px 0px 1px inset #A9ABB3;
				  box-shadow: 0px 4px 1px inset #D9DCE9,
					 						6px 0px 1px inset #A9ABB3;
					-moz-box-shadow: 
											0px 4px 1px inset #D9DCE9,
											6px 0px 1px inset #A9ABB3;
				z-index: 2;
				&:before{
					@extend %pseudo_base;
					width: 8px;
					height: 5px;
					background: #A9ABB3;
					clip-path: polygon(100% 0, 0 0, 0 100%);
					transform: skewX(60deg);
					top: 10px;
					left: 4.5px;
				}
				.first-part{
					width: 85px;
					height: 9px;
					background: #2D2C32;
					background-image: $background-image;
				  background-size: 70%;
					transform: skewX(-15deg);
					position: relative;
					top: 4px;
					left: 8px;
					border-radius: 2px 1px 2px 1px;
					box-shadow:
						14px 3px 4px inset #121215,
						-14px 0 3px inset #121215 ;
					-webkit-box-shadow:
						14px 3px 4px inset #121215,
						-14px 0 3px inset #121215 ;
					-moz-box-shadow:
						14px 3px 4px inset #121215,
						-14px 0 3px inset #121215 ;
					&:after{
						@extend %pseudo_base;
						width:63px;
						height:30px;
						background: #2D2C32;
						background-image: url("https://www.transparenttextures.com/patterns/beige-paper.png");
						background-size: contain;
						border-top: none;
						transform: skewX(63.5deg);
						left: 38.5px;
						top: 8px;
						border-radius: 2px 0 25px 25px;
						box-shadow:
							10px -6px 9px 0px inset #111114,
							-1px -1px 2px inset #9FB4CA,
							-5px -4px 3px inset #111114,
							;
						-webkit-box-shadow:
							10px -6px 9px 0px inset #111114,
							-1px -1px 2px inset #9FB4CA,
							-5px -4px 3px inset #111114,
							;
						-moz-box-shadow:
							10px -6px 9px 0px inset #111114,
							-1px -1px 2px inset #9FB4CA,
							-5px -4px 3px inset #111114,
							;
					}
				}
				.second-part{
					position:relative;
					&:before, &:after{
						@extend %pseudo_base;
						top: 3px;
						width: 12px;
						height: 5px;
						border-radius: 2px 0 0 2px;
						background:#121215;
						transform: skewX(55deg);
						left: 8.5px;
					}
					&:after{
						width: 12px;
						left: 80px;
						border-radius: 0 0px 0 6px;
					}
				}
				.third-part{
					width: 40px;
					height: 15px;
					position: relative;
					left: 40px;
					top: 1px;
					background: #444447;
					background-image: $background-image;
					background-size: 100%;
					transform: skewX(55deg);
					border-radius: 40px;
					box-shadow: -2px 0 3px inset #000000, 
						4px -2px 6px inset #414550,
						0px 0 1px 1px #000000;
					-webkit-box-shadow: -2px 0 3px inset #000000, 
						4px -2px 6px inset #414550,
						0px 0 1px 1px #000000;
					-moz-box-shadow: -2px 0 3px inset #000000, 
						4px -2px 6px inset #414550,
						0px 0 1px 1px #000000;
					&:after{
						@extend %pseudo_base;
						width: 13px;
						height: 13.5px;
						left: 16px;
						top: 0px;
						border-radius: 50%;
						box-shadow: 1px -1px 3px inset #80889B,
							2px -2px 5px inset #3A3A48, 
							7px 0 2px #000000;
						-webkit-box-shadow: 1px -1px 3px inset #80889B,
							2px -2px 5px inset #3A3A48, 
							7px 0 2px #000000;
						-moz-box-shadow: 1px -1px 3px inset #80889B,
							2px -2px 5px inset #3A3A48, 
							7px 0 2px #000000;
					}
				}
			}
			.background{
					position: relative;
					width: 300px;
					height: 60px;
					top: -285px;
				  left: -50px;
				  background-color:#585F6C;
					background-image: $background-image;
				  background-size: contain;
					-webkit-box-shadow: 
									-1px 0px 2px 2.5px inset #19141B;
				  box-shadow: 
									-1px 0px 2px 2.5px inset #19141B;
				  -moz-box-shadow:
									-1px 0px 2px 2.5px inset #19141B;
			}
		}
	.bottom{
		width: 310px;
		height: 35px;
		background: black;
		position: relative;
		top: 78px;
		left: -55px;
		border-width: 0 0 6px 14px;
		border-style: solid;
		border-color: 
				transparent transparent transparent #151518;
		-webkit-box-shadow: 0 3px  2px #222530,
												2px 1px 1px #4D5461,
												-4px 1px 1px inset #222631;
		box-shadow: 0 3px  2px #222530,
								2px 1px 1px #4D5461,
								-4px 1px 1px inset #222631;
		
		-moz-box-shadow: 0 3px  2px #222530,
										 2px 1px 1px #4D5461,
										 -4px 1px 1px inset #222631;
		&:before, &:after{
			@extend %pseudo_base;
		}
		&:before{
			left: 8px;
			width:280px;
			height: 20px;
			border-radius: 0 0 0 20px;
			-webkit-box-shadow: 0 0 9px 2px inset #26252A,
													0 0 10px 1px inset #A1ADBE;
			box-shadow: 0 0 9px 2px inset #26252A,
									0 0 10px 1px inset #A1ADBE;
			-moz-box-shadow: 0 0 9px 2px inset #26252A,
											 0 0 10px 1px inset #A1ADBE;
			background: linear-gradient(163deg, 															rgba(217,221,231,1) 0%, 															rgba(145,155,167,1) 18%, 															rgba(148,159,178,1) 34%, 
									rgba(130,143,160,1) 50%,
									rgba(78,76,88,1) 65%,
									rgba(57,56,61,1) 79%, 
									rgba(50,48,56,1) 92%);
		}
		&:after{
			top: 25px;
			left: 120px;
			width: 150px;
			border-top: 2px solid #222127;
		}
		.second-part{
			width: 362px;
			height: 135px;
			background-color:#585F6C;
			background-image: $background-image;
			background-size: 20%;
			z-index: -10;
			position: relative;
			left: -48px;
			top: -32px;
			border-radius: 3% 0 5% 20%;
			-webkit-box-shadow: 
				-2px 2px 2px inset #83848E,
				0 2px 2px inset #191820,
				5px 3px 5px inset #55525D,
				0px -15px 2px inset #1E1E21,
				-12px 0 7px inset #1E1E21,
			 -15px 3px 7px inset #83848E,
				0px -20px 6px inset #77899C,
				14px 3px 10px inset #77899C,
				15px 3px 15px inset #55525D;
			box-shadow:-2px 2px 2px inset #83848E,
				0 2px 2px inset #191820,
				5px 3px 5px inset #55525D,
				0px -15px 2px inset #1E1E21,
				-12px 0 7px inset #1E1E21,
			 -15px 3px 7px inset #83848E,
				0px -20px 6px inset #77899C,
				14px 3px 10px inset #77899C,
				15px 3px 15px inset #55525D,
				7px 8px 8px #424650,
				0 60px 30px #B4B0B7;
			-moz-box-shadow: 
				-2px 2px 2px inset #83848E,
				0 2px 2px inset #191820,
				5px 3px 5px inset #55525D,
				0px -15px 2px inset #1E1E21,
				-12px 0 7px inset #1E1E21,
			 -15px 3px 7px inset #83848E,
				0px -20px 6px inset #77899C,
				14px 3px 10px inset #77899C,
				15px 3px 15px inset #55525D;
			&:before, &:after{
				@extend %pseudo_base;
			}
			&:before{
				left: 364px;
				top: -29px;
				width: 95px;
				height: 148px;
				border-radius: 0 80% 10% 0;
				background: #4F4E53;
				background-image: $background-image;
				background-size: 50%;
				transform: skewx(-23deg) rotate(-23deg);
				-webkit-box-shadow: 
										15px 3px 13px inset #1E1E21,
										23px 3px 18px inset #55525D,
										3px -1px 3px #020100,
										0 -13px 7px inset #353036;
				box-shadow: 15px 3px 25px inset #1E1E21,
									 35px 3px 28px inset #55525D,
									 3px -1px 3px #020100,
									 0 -13px 7px inset #353036,
									 5px 11px 8px #211D20,
									 -10px 45px 60px #80787E;
				-moz-box-shadow:
									15px 3px 13px inset #1E1E21,
									23px 3px 18px inset #55525D,
									3px -1px 3px #020100,
									0 -13px 7px inset #353036;
			}
			&:after{
				height: 135px;
				width: 23px;
				border-radius: 0 0 35px 0;
				background:#37363D;
				left: 353px;
				top: 0px;
				filter: blur(2px);
			}
		}
	}
	.colors{
			width: 40px;
			height:50px;
			position: relative;
		  top: -96px;
		  left: 20px;
			-webkit-box-shadow: 0.5px 0 1px 1px black,
													0 1px 0 inset #BED5F1,
													0 5px 0px inset #91C3EA,
													0 6px 0 inset #BED5F1,
													0 7px 0px inset #627689,
													0 9px 0px inset #4D5E6B,
													0 14px 0px inset #7FC6BB,
													0 15px 0 inset #B4D8DC,
													0 18px 0px inset #516474,
													0 25px 0px inset #E7D3A0,
													0 28px 0px inset #516474,
													0 34px 0px inset #F0B8A4,
													0 35px 0px inset #A8B2C6,
													0 38px 0px inset #585765,
													0 53px 0px inset #E6899D,
													0.5px 2px 1px #A3A9C2;
		  box-shadow: 0.5px 0 1px 1px black,
									0 1px 0 inset #BED5F1,
									0 5px 0px inset #91C3EA,
									0 6px 0 inset #BED5F1,
									0 7px 0px inset #627689,
									0 9px 0px inset #4D5E6B,
									0 14px 0px inset #7FC6BB,
									0 15px 0 inset #B4D8DC,
									0 18px 0px inset #516474,
									0 25px 0px inset #E7D3A0,
									0 28px 0px inset #516474,
									0 34px 0px inset #F0B8A4,
									0 35px 0px inset #A8B2C6,
									0 38px 0px inset #585765,
									0 53px 0px inset #E6899D,
									0.5px 2px 1px #A3A9C2;
		-moz-box-shadow: 0.5px 0 1px 1px black,
										0 1px 0 inset #BED5F1,
										0 5px 0px inset #91C3EA,
										0 6px 0 inset #BED5F1,
										0 7px 0px inset #627689,
										0 9px 0px inset #4D5E6B,
										0 14px 0px inset #7FC6BB,
										0 15px 0 inset #B4D8DC,
										0 18px 0px inset #516474,
										0 25px 0px inset #E7D3A0,
										0 28px 0px inset #516474,
										0 34px 0px inset #F0B8A4,
										0 35px 0px inset #A8B2C6,
										0 38px 0px inset #585765,
										0 53px 0px inset #E6899D,
										0.5px 2px 1px #A3A9C2;
		}
	.logo, .camera-type{
		font-weight: bold;
		position: relative;
		text-shadow: 1.5px 0px 1px #1F232B;
	}
	.logo{
		font-size: 20px;
		color: #B9C2D3;
		top: -125px;
		left: 100px;
	}
	.camera-type{
		color: #BEC8D6;
		font-size: 10px;
		position: relative;
		top: -140px;
		left: 210px;
	}
	.back-div{
		position: relative;
    z-index:  -11;
		.first-part, .second-part{
			background: #302F35;
			background-image: $background-image;
			position: relative;
		}
		.first-part{
		width: 100px;
		height: 240px;
		background-size: 50%;
		top: -225px;
		left: 340px;
		border-radius: 0 40px 0 0;
		-webkit-box-shadow: 6px 10px 6px inset #6D6871,
												20px  13px 25px inset #38363C,
												70px 0 25px inset #342D35;
		box-shadow: 6px 10px 6px inset #6D6871,
								20px  13px 25px inset #38363C,
								70px 0 25px inset #342D35;
		-moz-box-shadow: 6px 10px 6px inset #6D6871,
										20px  13px 25px inset #38363C,
										70px 0 25px inset #342D35;
		&:before, &:after{
			@extend %pseudo_base;
			background: #302F35;
			background-image: $background-image;
			background-size: 55%;
			z-index: -1;
		}
		&:before{
				width:72px;
				height: 91px;
				top: 69px;
				left:79px;
				transform: skewx( 25deg);
				border-radius: 0 5px 0 0 ;
			}
		&:after{
				width: 74px;
				height:80px;
				top: 156px;
				left: 99px;
				border-radius: 0 10% 0 0 ;
			}
	 }
		.second-part{
			width: 230px;
			height: 60px;
			background-size: 20%;
			top: -251px;
			left: 300px;
			transform: rotate(5deg);
			-webkit-box-shadow:5px 2px 5px inset #302F35,
												 0 9px 14px inset #6D6871;
			box-shadow:5px 2px 5px inset #302F35,
								 0 9px 14px inset #6D6871;
			-moz-box-shadow:5px 2px 5px inset #302F35,
											0 9px 14px inset #6D6871;
			border-radius: 0 15px 10px 0 ;
			&:before, &:after{
				@extend %pseudo_base;
				background: #302F35;
			  background-image: $background-image;
			}
			&:before{
				top: 80px;
				left: 19px;
			  background-size: 20%;
				width: 222px;
				height: 20px;
				transform: rotate(-23deg);
				border-radius: 0 0 30px 0;
				z-index: 1;
				-webkit-box-shadow: 0 2px 2px inset #242022,
					       						0 -3px 5px inset #474248;
				box-shadow: 0 2px 2px inset #242022,
					       		0 -3px 5px inset #474248,
										-5px 6px 8px #211D20,
										0px 40px 40px #80787E;
				-moz-box-shadow: 0 2px 2px inset #242022,
					       				 0 -3px 5px inset #474248;
			}
			&:after{
				width: 140px;
				height: 50px;
				left: 50px;
				top: 40px;
				background-size: 45%;
				transform: rotate(-23deg);
			}
		}
	}
	.polaroid{
		#shadow{
			width: 250px;
			height: 60px;
			box-shadow: 45px 15px 20px #958E92;
			position: relative;
			top: -120px;
			left: -70px;
			transform: skewx(-30deg);
		}
		img{
		transform-style: preserve-3d;
		position: relative;
		top: -295px;
		left: -240px;
		width: 150px;
		border: 10px solid #D9D9DD;
		border-top: none;
		border-bottom-width: 35px;
		border-radius: 5px;
		overflow: hidden;
		transform: 
		matrix3d(1.038754, -0.050705, 0, -0.000831, 
						 -1.092152, 0.181814, 0, -0.001235, 
						 0, 0, 1, 0, 
						 267, 61, 0, 1);
		transform-origin: 0px 0px 0px;
		animation:5s ease-in-out printing-photo;
		animation-fill-mode: forwards; 
   }
	 .metrix{
		 top: -400px;
		 transform: 
			 matrix3d(1.725455, 0.019091, 0, 0.000091, 
                -0.327984, 1.101128, 0, -0.000042, 
                0, 0, 1, 0, 
                221, 99, 0, 1);	
		}
	}
	.none{
		display:none;
	 }
}
.table{
	width: 100vw;
	height: calc(100vh - 50vh);
	background: #D7D5DA;
	position: absolute;
	top: 370px;
	z-index: -15;
	-webkit-box-shadow: 10px -10px 25px #B4B2BD;
	box-shadow: 10px -10px 25px #B4B2BD;
	-moz-box-shadow: 10px -10px 25px #B4B2BD;
}

@keyframes flash-light{
		0% {
			width: 0;
			height: 0;
		}
		20% {
			width: 400px;
			height: 400px;
		}
		25% {
			width: 0;
			height: 0;    
		}
		45% {
			width: 400px;
			height: 400px;    
		}
		50% {
			width: 0;
			height:0;
		}
		100% {
			width: 0;
			height: 0;
		}
	}

@keyframes printing-photo{
	0%{
		height: 40px;
		clip-path: inset(74% 0 0 0);
	}
	
	25%{
		height: 75px;
		clip-path: inset(54% 0 0 0);
	}
	
	50%{
		height: 110px;
		clip-path: inset(27% 0 0 0);
	}
	
	75%{
		height: 145px;
		clip-path: inset(11% 0 0 0);
	}
	
	100%{
		height: 180px;
		border-top: 10px solid #D9D9DD;
		clip-path: inset(0% 0 0 0);
	}
}

@media only screen and (min-width: 600px){
	#video{
		width: 60px;
		height: 50px;
	}
	.camera{
		left: 105px;
	}
}

@media only screen and (min-width: 700px){
	#video{
		width: 80px;
		height: 70px;
	}
	.camera{
		left: 150px;
	}
}

@media only screen and (min-width: 750px){
	#video{
		width: 90px;
		height: 80px;
	}
	.camera{
		left: 200px;
	}
}

@media only screen and (min-width: 850px){
	#video{
		width: 100px;
		height: 90px;
	}
	.camera{
		left: 300px;
	}
}

@media only screen and (min-width: 900px){
	#video{
		width: 110px;
		height: 100px;
	}
	.camera{
		left: 250px;
	}
}

@media only screen and (min-width: 1000px){
	#video{
		width: 120px;
		height: 110px;
	}
	.camera{
		left: 350px;
	}
}

@media only screen and (min-width: 1200px){
	#video{
		width: 130px;
		height: 120px;
	}
	.camera{
		left: 400px;
	}
}

              
            
!

JS

              
                let clickButton = document.querySelector('.click-button');
let flashLight = document.querySelector('.light');
let canvas = document.querySelector("#canvas")
let context = canvas.getContext('2d')
let video = document.querySelector("video")
let polaroid = document.querySelector('.polaroid')
let img = document.querySelector('img')
let dataUrl = canvas.toDataURL();
let shadow = document.querySelector("#shadow")

function converetCanvastoImage(c){
	src = c.toDataURL('image/jpeg');
	return src
}

const clickFunction = () =>{
	console.log('hey')
	img.classList.add('none')
	img.classList.remove('metrix')
	shadow.classList.add('none')
	if(flashLight.classList.contains("none")){
		context.drawImage(video, 0, 0, 640, 480)
		flashLight.classList.remove("none")	
		img.src =  converetCanvastoImage(canvas)
		setTimeout(() => {		
			img.classList.remove("none")
	} , 500)

		setTimeout(() => {
			img.classList.add('metrix')
			shadow.classList.remove('none')
		}, 6000)
 }
}

addDisplayNone = () => {
	setTimeout(() => {
			flashLight.classList.add('none')
	}, 500)
}

clickButton.addEventListener('click', function(){
	clickFunction();
	addDisplayNone()
})

if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia){
	navigator.mediaDevices.getUserMedia({video: true}).then(stream => {
		video.srcObject = stream
		video.play()
	})
}
              
            
!
999px

Console