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


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


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.


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.


                <div class="main-wrapper">
			<div class="hamburger">
				<i title="menu" id="menu" class="fa fa-ellipsis-h"></i>
				<div class="text">NAVIGATION</div>
	<div id="main">
			<h1>Full page navigation</h1>
		<div>Display of full page navigation</div>
<aside id="main-menu">
	<div id="close">X</div>
			<li><a href="#">Home</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">R &amp; D</a></li>
			<li><a href="#">Corporate Responsibility</a></li>
			<li><a href="#">Contact Us</a></li>


                * {
	font-family: Raleway, sans-serif;
a,a:link,a:active,a:focus,a:hover {color:#fff;text-decoration:none;}
body {
	background-color: rgb(130, 176, 170);
	color: #222;
#close {
	font-size: 160%;
	color: white;
	font-weight: bold;
	text-align: right;
	cursor: pointer;
	margin-top: 30px;
	margin-right: 30px;
.hamburger {
	cursor: pointer;
	display: inline-block;
	text-align: center;
	margin-top: 10px;
	margin-right: 10px;
header {
	text-align: right;
ul {
	margin-left: -40px;
	text-align: center;
	list-style-type: none;
	font-size: 250%;
li {padding:10px 0px;}
#main {
	display: flex;
	flex-direction: column;
	text-align: center;
	background-color: rgb(209, 223, 216);
	padding: 20px 0px 40px 0px;
	margin: 50px -10px;
#menu {
	cursor: pointer;
	font-size: 150%;
aside {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgb(220, 86, 85, 0.9);
	z-index: 3;
	opacity: 0;
	top: 0px;
	left: 0px;
	visibility: hidden;
	transition: all 250ms ease;
} {
	z-index: 3;
	opacity: 1;
	visibility: visible;
	transition: all 250ms ease;
} a:link {
	color: #fff;
	text-decoration: none;

.hamburger .text {font-weight:bold;font-size:10px;opacity:0;transform:translate(0px,-20px);transition:transform 300ms ease-in-out,opacity 250ms ease-in-out;}
.hamburger:hover .text {transform:translate(0px,0px);opacity:1;}
h1 {font-size:150%;}

@media (min-width:900px){


	'use strict';
	function menu(){
		const ham = document.getElementById('menu');
		const nav = document.getElementById('main-menu');
		const close = document.getElementById('close');
		ham.addEventListener('click', function(){