css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- Move windows around by grabbing and dragging the top bar. Change bar color with the swatches in the top left. Resize by dragging from the bottom, right side, or bottom right corner, or by clicking the maximize button in the to right. THANK YOU-->

<div class="frame"  id="video">
		<div class="topbar green">
			<div class="swatches"><span class="red"></span><span class="orange"></span><span class="yellow"></span><span class="green"></span><span class="blue"></span></div>
			<div class="maxbtn"><span></span></div>
			<div class="xbtn">x</div>
		</div>
		<div class="content">
			<iframe src="//www.youtube.com/embed/jcgnJkn87Dg?rel=0&wmode=transparent" frameborder="0" allowfullscreen ></iframe>
		</div>
	</div>
	
	<div class="frame"  id="website">
		<div class="topbar orange">
			<div class="swatches"><span class="red"></span><span class="orange"></span><span class="yellow"></span><span class="green"></span><span class="blue"></span></div>
			<div class="maxbtn"><span></span></div>
			<div class="xbtn">x</div>
		</div>
		<div class="content">
			<iframe src="//www.webdesignerdepot.com/" frameborder="0"></iframe>
		</div>
	</div>
	
	<div class="frame" id="custom">
		<div class="topbar blue">
			<div class="swatches"><span class="red"></span><span class="orange"></span><span class="yellow"></span><span class="green"></span><span class="blue"></span></div>
			<div class="maxbtn"><span></span></div>
			<div class="xbtn">x</div>
		</div>
		<div class="content">
			<div class="custom-wrapper">
				<h1>Custom Content</h1>
				<h2>Hello!</h2>
			</div>
		</div>
	</div>
	
	<div class="frame" id="sticky">
		<div class="topbar yellow">
			<div class="swatches"><span class="red"></span><span class="orange"></span><span class="yellow"></span><span class="green"></span><span class="blue"></span></div>
			<div class="maxbtn"><span></span></div>
			<div class="xbtn">x</div>
		</div>
		<div class="content">
			<div class="sticky-wrapper">
				<textarea>Sticky Note Style. Type in me!</textarea>
			</div>
		</div>
	</div>
            
          
!
            
              body{
		background: #3e4649;
		padding: 0;
		margin: 0;
	}
	.frame{
		position: absolute;
		border: 1px solid #333;
		background: #e7e7e7;
		box-shadow: 0 1px 10px #111;
		border-radius: 3px;
		z-index: 10;
		overflow: hidden;
	}
	.topbar{
		border-radius: 3px 3px 0 0;
		padding: 5px;
		text-align: right;
		cursor: default;
	}
	.xbtn, .maxbtn{
		padding: 2px 4px;
		text-align: center;
		border-radius: 2px;
		color: #333;
		display: inline-block;
			*display: inline;
			zoom: 1.0;
		vertical-align: top;
		font-family: 'Days One', sans-serif;
		font-size: 16px;
		margin-top: -3px;
	}
	.swatches{
		float: left;
		background: #333;
	}
	.swatches span{
		display: block;
		float: left;
		width: 10px;
		height: 10px;
		cursor: pointer;
		margin: 5px;
	}
	.red{
		background: #d23c31;
	}
	.orange{
		background: #f27937;
	}
	.yellow{
		background: #ffcc33;
	}
	.green{
		background: #22a86d;
	}
	.blue{
		background: #37a2d6;
	}
	.maxbtn span{
		display: block;
		border: 1px solid #333;
		border-top: 2px solid #333;
		width: 9px;
		height: 8px;
		margin-top: 6px;
	}
	.maxbtn:hover span, .maximized .maxbtn span{
		border-color: #e7e7e7;
	}
	.xbtn:hover{
		color: #e7e7e7;
	}
	.content{
		height: auto;
		width: auto;
		padding: 15px;
	}
	.content>div{
		width: inherit;
		height: inherit;
	}
	.content>iframe{
		width: inherit;
		height: inherit;
	}
	textarea{
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: none;
	  	outline: none;
	  	-webkit-appearance: none;
	  	background: #e7e7e7;
	  	color: #333;
	  	font-size: 16px;
	  	font-weight: normal;
	  	font-family: 'Days One', sans-serif;
	  	text-shadow: 0 1px 0 #fff;
	  	resize: none;
	}
	.active{
		z-index: 999999;
	}
	#video{
		top: 10px;
		left: 10px;
	}
	#website{
		top: 10px;
		left: 350px;
	}
	#custom{
		top: 480px;
		left: 350px;
	}
	#sticky{
		top: 280px;
		left: 10px;
	}
	#video .content{
		width: 300px;
		height: 200px;
	}
	#website .content{
		width: 550px;
		height: 400px;
		right: 0;
	}
	#custom .content{
		width: 550px;
		height: 150px;
	}
	
	#sticky .content{
		width: 300px;
		height: 350px;
	}
	
	.frame.maximized{
		top: 1% !important;
		left: 1% !important;
		width: 98% !important;
		height: 98% !important;
		-moz-transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
		-webkit-transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
		transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
	}
	
	.frame.maximized .content{
		margin: 0 auto !important;
		width: 95% !important;
		height: 95% !important;
		-moz-transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
		-webkit-transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
		transition: width .25s linear, height .25s linear, top .25s linear, left .25s linear;
	}
            
          
!
            
              $('.frame').mousedown(function(){
			$(".active").removeClass("active");
			$(this).addClass("active");
		});
		$('.frame').not(".maximized").resizable({
			alsoResize: ".active .content",
			minWidth: 200,
			minHeight: 59
		}).draggable({
			handle: ".topbar"
		});
		
		//COLOR CHANGNG
		$('.swatches span').click(function(){
			var color = $(this).attr("class");
			$(this).parent().parent().attr("class", "topbar").addClass(color);
		});
		
		//MAXIMIZED
		$('.maxbtn').click(function(){
			$(this).parent().parent().toggleClass("maximized");
		});
		
		//CLOSE
		$('.xbtn').click(function(){
			$(this).parent().parent().remove();
		});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console