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 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

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

              
                <button id="open">OPEN</button>
<div id="window">
	<header>
		<h1>
			<span class="glyphicon glyphicon-fullscreen"></span>
			<span class="glyphicon glyphicon-remove"></span>
		</h1>
	</header>
	<main>
		<section>
			<span class="glyphicon glyphicon-heart"></span>
		</section>
		<section>
			<span class="glyphicon glyphicon-record"></span>
		</section>
		<section>
			<span class="glyphicon glyphicon-leaf"></span>
		</section>
		<section>
			<span class="glyphicon glyphicon-fire"></span>
		</section>
	</main>
</div>
              
            
!

CSS

              
                $head-font = 'Montserrat', sans-serif
$main-font = 'Open Sans', sans-serif

body
	background #F5D069
	font-family $main-font
	overflow hidden
		
//				animated(fall-in, .75s)

animated(name, duration)
	-webkit-animation name duration
	-moz-animation name duration
	-o-animation name duration
	animation name duration
	
transformation(s)
	-ms-transform scale(s, s)
	-webkit-transform scale(s, s)
	transform scale(s, s)
	
@-webkit-keyframes fall-in
	0%
		transformation(3)
		opacity 0
	50%
		transformation(1)
		opacity 1
	60%
		transformation(1.1)
	100%
		transformation(1)

button
	background #484846
	color #fff
	border none
	padding 5px 25px
	border-radius 4px
	font-size 1.5em
	font-weight lighter
	position absolute
	left 50%
	top 50%
	margin-left -51px
	margin-top -20px
	font-family $head-font
	&:focus
		outline none
	&:active
		background #7D7D7A
		
#window
	transition all .15s ease-in-out
	height 100%
	width 100%
	background white
	position absolute
	&.animated
		animated(fall-in, .25s)
	header
		border-bottom 1px solid #f0f0f0
		width 100%
		height 20px
		h1
			font-family $head-font
			span
				&.glyphicon
					font-size 14px
					position absolute
					right 15px
					top 10px
					cursor pointer
					&:first-child
						right 40px
						top 12px
						font-size 10px
						font-weight bold
					&:last-child
						color red
	&.minimized
		transition all .15s ease-in-out
		height 75%
		width 50%
		margin-left 25%
		margin-top: 5%
		border-radius 4px
	section
		position absolute
		width 50%
		height 50%
		float left
		&:first-child
			border-bottom 1px solid #f0f0f0
			border-right 1px solid #f0f0f0
		&:nth-child(2)
			border-bottom 1px solid #f0f0f0
			left 50%
		&:nth-child(3)
			top 50%
			border-right 1px solid #f0f0f0
		&:last-child 
			top 50%
			left 50%
		&:hover
			cursor pointer
			span
				transition all .1s ease-in-out
			&:first-child
				span
					color hotpink
			&:nth-child(2)
				span
					color tomato
			&:nth-child(3)
				span
					color yellowgreen
			&:last-child
				span
					color darkorange
		span
			font-size 5em
			position absolute
			left 50%
			margin-left -35px
			top 50%
			margin-top -35px
			color #eee
              
            
!

JS

              
                $(document).ready(function() {

		$(function() {
				$('.glyphicon-fullscreen').click(function() {
						$('#window').toggleClass('minimized');
				});
				$('#open').click(function() {
						$('#window').show().toggleClass('animated');
				});
				$("#window").hide();
				$('.glyphicon-remove').click(function() {
						$('#window').hide().toggleClass('animated').removeClass('minimized');
				});
		});

});
              
            
!
999px

Console