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.

              <nav id="nav">
	<div class="mNav clearfix">
		<div class="bars">
			<div class="bar one"></div>
			<div class="bar two"></div>
			<div class="bar three"></div>
	<ul class="nav clearfix">
		<li class="active"><a href="#section1">Intro</a></li>
		<li><a href="#section2">Skill</a></li>
		<li><a href="#section3">Coding</a></li>
		<li><a href="#section4">Design</a></li>
		<li><a href="#section5">About</a></li>
		<li><a href="#section6">Contact</a></li>

<section id="contents">
	<div id="section1">
		<div class="container">
			<div class="sec1">
	<div id="section2">
		<div class="container">
			<div class="sec2">
	<div id="section3">
		<div class="container">
			<div class="sec3">
	<div id="section4">
		<div class="container">
			<div class="sec4">
	<div id="section5">
		<div class="container">
			<div class="sec5">
	<div id="section6">
		<div class="container">
			<div class="sec6">
              @import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900');
/* font-family: 'Lato', sans-serif; */

/* nav */
#nav {	
	position: fixed; left: 0; top: 0; z-index: 100;
	width: 100%; height: 56px; 
	text-align: center;
	transition: top 0.3s ease-in-out;

.nav li {
	float: left; 
	width: 16.6666%;
.nav li a {
	display: block;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
.nav li.active a {
.nav.oc {display: block;}

.mNav {overflow:hidden; display: none; background-color:rgba(0,0,0,0.3);}
.mNav h1 {float: left; font-size: 34px; color: #fff; padding:10px 13px 10px 13px; font-weight: 900;}
.mNav .bars {float: right; width: 40px; height:40px; position: relative; margin-right:24px; margin-top:12px;}
.mNav .bars .bar {position: absolute; width: 40px; height: 4px; background-color: #fff; margin: 5px 0;}
.mNav .bars .bar.one {top:0; left;0;}
.mNav .bars .bar.two {top: 10px; left: 0;}
.mNav .bars .bar.three {top: 20px; left: 0;}

/* container */
.container {}

/* contents */
#contents {font-size: 100px; color:#fff; text-align: center; font-family: 'Lato', sans-serif;}
#contents > div {height: 100vh; line-height: 100vh;}
#contents > div h2 {font-weight: 100;}
#contents > div h2 strong {font-weight: 700;}

/* section */
#section1 {background: radial-gradient(ellipse farthest-corner at center right, #ffee75 0%, #ff8930 100%);}
#section2 {background: radial-gradient(ellipse farthest-corner at center left, #cbf49a 0%, #1ea623 100%);}
#section3 {background: radial-gradient(ellipse farthest-corner at center top, #f8bfa4 0%, #f33b4e 100%);}
#section4 {background: radial-gradient(ellipse farthest-corner at center bottom, #6beace 0%, #2e9aa4 100%);}
#section5 {background: radial-gradient(ellipse farthest-corner at left top, #69d2fb 0%, #20438e 100%);}
#section6 {background: radial-gradient(ellipse farthest-corner at left bottom, #f093fb 0%, #f5576c 100%);}
.nav {display: block;}
/* mediaquery */
@media (max-width:960px){
	.nav {display: none;}
	#nav li {width: 100%;}
	.mNav {display: block;}

	var wWidth = $(window).width();
	if(wWidth > 400 && $(".nav").is(":hidden")){
// $(".bars").click(ani);

// function ani(){
// 	if($(".bars .bar").hasClass("active")){
// 		$(".bars .bar").removeClass("active");
// 		$(".bars .bar").addClass("notActive");
// 	} else {
// 		$(".bars .bar").removeClass("notActive");
// 		$(".bars .bar").addClass("active");
// 	}
// }

// $(".icon").click(function(){
// 	if($(".icon > div").hasClass("active")){
// 		$(".icon > div").removeClass("active").addClass("notactive");
// 	} else {
// 		$(".icon > div").removeClass("notactive").addClass("active");
// 	}
// });
🕑 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.