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.


                <link href=",300,400,700,900" rel="stylesheet">

<div id="nav">
  <ul class="clearfix">
    <li><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>

<div id="contents">
  <div id="section1">I'm in love with the <strong>shape of you</strong> </div>
  <div id="section2"><strong>We push</strong> and pull like a magnet do</div>
  <div id="section3">Although <strong>my heart</strong> is falling too</div>
  <div id="section4"><strong>I'm in love</strong>  with your body</div>
  <div id="section5">Last night you were in <strong>my room</strong> </div>
  <div id="section6">And now my bedsheets smell <strong>like you</strong> </div>


                body {position:relative; overflow-x:hidden;}
.clearfix:before, .clearfix:after{
  display: block; content:''; line-height:0;}

#nav{width: 100%; position: fixed; text-align:center; }
#nav h2{background-color: rgba(255,255,255,0.5); font-size: 30px; color:#000; padding: 10px 0;}
#nav ul li a {padding: 5px 0; display: block; color: #fff; text-decoration: none;}
#nav ul li:nth-child(odd){background-color: rgba(255,255,255,0.1);}
#nav ul li:nth-child(even){background-color: rgba(255,0,0,0.1);}
#nav ul li .on {background-color: rgba(0,0,0,0.5);}

#contents {text-align: center; color:#fff; font-size: 60px; font-family: 'Lato', sans-serif;}
#contents > div {height: 100vh; line-height: 100vh; font-weight: 100;}
#section1 { background: radial-gradient(ellipse farthest-corner at left top, #ebbba7 0%, #cfc7f8 100%);}

#section2 {background: radial-gradient(ellipse farthest-corner at right top, #ebbba7 0%, #cfc7f8 100%);}

#section3 {background:radial-gradient(ellipse farthest-corner at bottom left, #ebbba7 0%, #cfc7f8 100%);} 

#section4 {background: radial-gradient(ellipse farthest-corner at bottom center, #ebbba7 0%, #cfc7f8 100%);}

#section5 {background:radial-gradient(ellipse farthest-corner at right bottom, #ebbba7 0%, #cfc7f8 100%);} 

#section6 {background: radial-gradient(ellipse farthest-corner at bottom right, #ebbba7 0%, #cfc7f8 100%);}




  var wWidth = $(window).width();
  var wHeight = $(window).height();
  var wPosX = (wWidth/2) - ($("#nav").width()/2);
  var wPosY = wHeight - $("#nav h2").innerHeight();
    $("#nav").css({left:wPosX, top:wPosY});
  $("#nav").stop().animate({top:wHeight - $("#nav").innerHeight()},300);

$("#nav ul li a").mouseover(function(){