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

Packages

Add 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 or require. We'll also process your JavaScript with Babel.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

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.

            
              <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

<div class="cusbody">
	<nav class="mainMenu">
		<ul>
			<li class="act">
				<a href="#"><i class="fa fa-adjust"></i><span>Intro</span></a>
			</li>
			<li>
				<a href="#"><i class="fa fa-server"></i><span>Services</span></a>
			</li>
			<li>
				<a href="#"><i class="fa fa-smile-o"></i><span>Team</span></a>
			</li>
			<li>
				<a href="#"><i class="fa fa-usd"></i><span>Pricing</span></a>
			</li>
			<li>
				<a href="#" class="suBtn"><i class="fa fa-hand-o-right"></i><span>Sing Up</span></a>
			</li>
			</ul>
	</nav>
	<div class="mainContainer">
		<header>
			<a href="#" class="menuBtn">
			<span class="lines"></span>
			</a>
			<a href="#" class="logo">logo</a>
		</header>
		<div class="contentBlock">
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris a aliquam felis, vel pulvinar felis. Nulla massa quam, elementum sed lacinia eu, faucibus at dui. Praesent urna ante, ultrices sed posuere eget, aliquam eu libero. Morbi vitae mi tellus. Ut vel libero euismod, posuere nisi id, rhoncus odio. Curabitur non magna eget dui ultricies commodo ac quis enim. Interdum et malesuada fames ac ante ipsum primis in faucibus.</p>
			<p>Pellentesque sit amet aliquet mauris. Proin in elit varius, maximus erat sed, mattis odio. Ut quis consequat mauris. Nulla porttitor congue finibus. Integer quis urna nec dui tincidunt auctor in at diam. Proin imperdiet nisl nec dictum tempor. Integer in gravida eros, eu sodales lorem. Donec hendrerit massa gravida lacinia pharetra. In ac efficitur odio. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rhoncus ante vel enim tristique, ut bibendum ex molestie. Fusce congue vel turpis nec pulvinar. Nulla eu diam ex. Suspendisse tristique, orci et faucibus cursus, sem nulla hendrerit ex, quis varius nibh nisl a lectus.</p>
		</div>
		<footer>
		</footer>
	</div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Lato);

* {
	margin: 0;
	padding: 0;
}
*, *:after, *:before {
	box-sizing: border-box;
}
::-webkit-scrollbar { 
    display: none; 
}
ol, ul {
	list-style: none;
}
a {
	color: #000;
	text-decoration: none;
}
html {
	line-height: 1.2;
}
body {
	background-color: #fff;
	color: #000;
	font-family: "Lato", arial, sans-serif;
	font-size: 16px;
}
.cusbody {
	background-color: #2c3e50;
	border: 0 solid #333;
	border-width: 50px 15px;
	border-radius: 12px;
	box-shadow: 5px 5px 0 rgba(0,0,0,.6);
	margin: 20px auto;
	max-width: 320px;
	height: 560px;
	overflow-x: hidden;
	position: relative;
	&.act {
		overflow: hidden;
		.mainMenu {
			a {
				opacity: 1;
				transform: translateX(0);
			}
		}
		.mainContainer {
			transform: translate(80%, 3%);
		}
	}
}
.mainContainer {
	min-height: 100%;
	transition: all 350ms;
	position: relative;
	z-index: 1;
}
header {
	background-color: #34495e;
	padding: 10px 15px;
	text-align: center;
	position: relative;
}
.logo {
	color: #fff;
	display: inline-block;
	font-size: 20px;
	letter-spacing: -4px;
	line-height: 30px;
	text-transform: uppercase;
	vertical-align: top;
}
/* menu button */
.menuBtn {
	height: 30px;
	width: 30px;
	position: absolute;
	left: 15px;
	top: 10px;
	z-index: 101;
	> span {
		background-color: #fff;
		border-radius: 1px;
		height: 2px;
		width: 100%;
		position: absolute;
		left: 50%;
		top: 50%;
		margin: -1px 0 0 -15px;
		transition: height 100ms;
		&:after, &:before {
			content: '';
			background-color: #fff;
			border-radius: 1px;
			height: 2px;
			width: 100%;
			position: absolute;
			left: 50%;
			margin-left: -15px;
			transition: all 200ms;
		}
		&:after {
			top: -7px;
		}
		&:before {
			bottom: -7px;
		}
	}
	&.act {
		> span {
			height: 0;
			&:after, &:before {
				background-color: #fff;
				top: 1px;
			}
			&:after {
				transform: rotate(45deg);
			}
			&:before {
				transform: rotate(-45deg);
			}
		}
	}
}
/* main menu block */
.mainMenu {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	ul {
		margin-top: 30px;
	}
	li {
		padding: 15px;
		&.act {
			border-left: 3px solid #fff;
		}
		i, a {
			font-size: 18px;
			display: inline-block;
			vertical-align: middle;
		}
		i {
			margin-right: 15px;
		}
	}
	a {
			color: #fff;
		opacity: 0;
		transition: all 750ms;
		transform: translateX(50%);
	}
}
/* container */
.contentBlock {
	background-color: #fff;
	color: #000;
	padding: 15px;
	p {
		font-size: 15px;
		line-height: 1.4;
		padding-top: 15px;
		&:first-child {
			padding-top: 0;
		}
	}
}
/* media queries */
@media screen and (min-width: 640px) {
	
}
            
          
!
            
              $(document).ready(function(){
	// menu click event
	$('.menuBtn').click(function() {
		$(this).toggleClass('act');
		$('.cusbody').toggleClass('act');
	});
});
            
          
!
999px

Console