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

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

              
                		<div class="container">
			<div class="menu-btn">
				<span class="top"></span>
				<span class="mid"></span>
				<span class="bot"></span>
			</div>
			<div id="nav">
				<ul class="nav-inner">
					<li>
						<a href="#">about</a>
					</li>
					<li>
						<a href="#">portfolio</a>
					</li>
					<li>
						<a href="#">works</a>
					</li>
					<li>
						<a href="#">Skills</a>
					</li>
					<li>
						<a href="#">Contact</a>
					</li>
				</ul>
			</div>
			<div id="style-box">
				<div class="box-inner">
					<h1>slide toggle menu <span>- chris li</span></h1>
					<ul>
						<li class="leftslide" data-styles="leftslide">left slide</li>
						<li class="fadein" data-styles="fadein">fade in</li>
						<li class="topslide" data-styles="topslide">top slide</li>
						<li class="pushslide" data-styles="pushslide">push slide</li>
					</ul>
				</div>
			</div>
		</div>
              
            
!

CSS

              
                $white:#ffffff;
$black:#000000;
$maincolor:#3BD9B5;
$secondcolor:#6f58ee;

*, *:before, *:after {
	box-sizing:border-box;
}

body,html {
	width: 100%;
	height: 100%;
  font-family: 'Roboto', sans-serif;
}

ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.container {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	.menu-btn {
		width: 50px;
		height: 50px;
		position: fixed;
		z-index: 10;
		top: 30px;
		left: 30px;
		cursor: pointer;
		transition: transform .3s ease-in-out;
		&:hover span{
			background-color: lighten($maincolor,15%);
		}
		&.active {
			transform: rotate(180deg);
			span {
				transition: transform .3s ease-in-out,
							opacity .3s ease-in-out;
				&.top {
					transform: rotate(45deg);
					transform-origin: left center;
					top: (50px - 4px)/2 - 14px;
					left: (50px - 40px + (40px/1.6)/2)/2;
				}
				&.mid {
					opacity: 0;
					left: (50px - 40px + (40px/1.6)/2)/2;
				}
				&.bot {
					transform: rotate(-45deg);
					transform-origin: left center;
					top: (50px - 4px)/2 + 14px;
					left: (50px - 40px + (40px/1.6)/2)/2;
				}
			}
		}
		span {
			display: block;
			width: 40px;
			height: 4px;
			background-color: $maincolor;
			position: absolute;
			top: (50px - 4px)/2;
			left: (50px - 40px)/2;
			border-radius: 2px;
			transition: background-color .3s ease-in-out;
			&.top {
				top: (50px - 4px)/2 - 12px;
			}
			&.bot {
				top: (50px - 4px)/2 + 12px;
			}
		}
	}

	#nav {
		display: flex;
		justify-content: center;
		align-items: center;
		opacity: 0;
		z-index: -1;
		transition: transform .3s ease-in-out,
					opacity .3s ease-in-out;
		&.leftslide {
			width: 250px;
			height: 100vh;
			background-color: $white;
			position: fixed;
			top: 0;
			left: 0;
			transform: translate3d(-300px, 0px, 0px);
		}
		&.fadein {
			width: 100%;
			height: 100vh;
			background-color: $white;
			position: fixed;
			top: 0;
			left: 0;
			text-align: center;
		}
		&.topslide {
			width: 100%;
			height: 100vh;
			background-color: $white;
			position: fixed;
			top: 0;
			left: 0;
			transform: translate3d(0px, -100%, 0px);
			text-align: center;
		}
		&.pushslide {
			width: 250px;
			height: 100vh;
			background-color: $white;
			position: fixed;
			top: 0;
			left: 0;
			transform: translate3d(0px, 0px, 0px);
		}
		&.open {
			transform: translate3d(0px, 0px, 0px);
			opacity: 1;
			z-index: 5;
			transition: transform .3s ease-in-out,
						opacity .3s ease-in-out;
			.nav-inner {
				li {
					animation: fadeInRight .4s ease forwards;
					animation-delay: .3s;
					&:nth-of-type(1) {
						animation-delay: .35s;
					}
					&:nth-of-type(2) {
						animation-delay: .4s;
					}
					&:nth-of-type(3) {
						animation-delay: .45s;
					}
					&:nth-of-type(4) {
						animation-delay: .5s;
					}
					&:nth-of-type(5) {
						animation-delay: .55s;
					}
				}
			}
		}
		.nav-inner {
			li {
				position: relative;
				margin-bottom: 30px;
				opacity: 0;
				transition: transform .3s ease-in-out;
				a {
					display: inline-block;
					height: 100%;
					text-decoration: none;
					color: lighten($black,30%);
					font-size: 30px;
					text-transform: capitalize;
					letter-spacing: 1px;
					font-weight: 800;
					padding: 4px 8px;
					transition: all .2s ease-in-out;
					&:before {
						content: "";
						position: absolute;
						left: -30px;
						top: 50%;
						display: block;
						width: 8px;
						height: 8px;
						border-radius: 50%;
						background-color: $maincolor;
						opacity: 0;
						transition: all .3s ease-in-out;
					}
					&:hover {
						background-color: $secondcolor;
						color: $white;
						transform: translate3d(15px ,0 ,0);
						&:before {
								content: "";
								left: -15px;
								opacity: 1;
						}
					}
				}
			}
		}
	}


	#style-box {
		width: 100%;
		height: 100vh;
	    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA4MDAgODIzLjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDgwMCA4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4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTkzLjcsNTAyYy0wLjgsMC0xLjctMC4zLTIuMi0xYy0xLjEtMS4yLTEtMy4xLDAuMy00LjJsMjkuMy0yNmMxLjItMS4xLDMuMS0xLDQuMiwwLjNjMS4xLDEuMiwxLDMuMS0wLjMsNC4yCglsLTI5LjMsMjZDMTk1LjEsNTAxLjgsMTk0LjQsNTAyLDE5My43LDUwMnoiLz4KPC9zdmc+Cg=='),linear-gradient(90deg, #6f58ee 0%, #7434f3 100%);
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: relative;
		z-index: 3;
		transition: transform .3s ease-in-out;
		&.leftslide,&.fadein,&.topslide,&.pushslide {
			&:before {
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				z-index: 5;
				background-color: rgba($black,.3);
			}
		}
		&.pushslide {
			transform: translate3d(250px,0,0);
			transition: transform .3s ease-in-out;
			z-index: 5;
		}
		.box-inner {
			h1 {
				margin-top: 0;
				padding: 10px;
				text-transform: uppercase;
				color: $white;
				span {
					font-style: italic;
					font-size: 20px;
				}
			}
			ul {
				li {
					display: inline-block;
					padding: 10px 15px;
					margin-right: 10px;
					margin-bottom: 10px;
					background-color: $maincolor;
					text-transform: capitalize;
					border-radius: 4px;
					cursor: pointer;
					color: $white;
					border: 2px solid $maincolor;
					transition: background-color .2s ease-in;
					&:last-child {
						margin-right: 0;
					}
					&:hover, &.now {
						background-color: transparent;
					}
				}
			}
		}
	}
}

@keyframes fadeInRight {
  0% {
	    opacity: 0;
	    left: 30px;
	}
  100% {
	    opacity: 1;
	    left: 0px;
	}
}
              
            
!

JS

              
                $(document).ready(function() {

	var $menuBtn = $('.menu-btn');
	var $nav = $('#nav');
	var $stylebox = $('#style-box');
	var $styleli = $stylebox.find('li');

	$menuBtn.on('click', function() {
		var $this = $(this);
		var styles = $stylebox.data('styles');
		$this.toggleClass("active");
		$this.next('#nav').toggleClass("open");
		$stylebox.toggleClass(styles);
	});

	$nav.addClass('leftslide');

	$styleli.on('click', function() {
		var $this = $(this);
		$this.siblings().removeClass('now');
		$this.addClass('now');
		var styles = $this.data('styles');
		$nav.removeClass();
		$nav.addClass(styles);
		$nav.siblings('#style-box').removeClass();
		$nav.siblings('#style-box').data('styles',styles);
	});



});
              
            
!
999px

Console