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 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


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 href=",400i,500,500i,600,600i,700,700i" rel="stylesheet">

<div id="nav">
      <li><a href="#section1">menu1</a></li>
      <li><a href="#section2">menu2</a></li>
      <li><a href="#section3">menu3</a></li>
      <li><a href="#section4">menu4</a></li>
      <li><a href="#section5">menu5</a></li>
      <li><a href="#section6">menu6</a></li>

<div id="contents">
  <div id="section1">We love What You do.</div>
  <div id="section2">love What You do.</div>
  <div id="section3">What You do.</div>
  <div id="section4">Can I get a ride?</div>
  <div id="section5">Call me Sam, please.</div>
  <div id="section6">Couldn't be better than this.</div>


              #nav {
  overflow:hidden; position: fixed; left: 0; top: 0; width: 100%; background-color: rgba(255,255,255,0.6);
#nav h2 { float:left; color:#fff; font-size: 40px; padding:12px 5px 5px 20px; font-weight:700;
#nav ul {
  float: right;
#nav ul li {
#nav ul li a {
  padding:10px; text-decoration: none; color:#fff; display:inline-block;

#contents {
  text-align: center; font-size: 40px;       color:#fff; line-height: 100vh; 
  font-family: 'Archivo', sans-serif;
  font-weight: 400i;
#contents > div {
  height: 100vh;
#section1 {
  background-color: #1a237e;
#section2 {
  background-color: #0d47a1;
#section3 {
  background-color: #311b92;
#section4 {
  background-color: #01579b;
#section5 {
  background-color: #006064;
#section6 {
  background-color: #004d40;


              var nav = $("#nav ul li");
var contents = $("#contents > div");{
  var target = $(this);     //6개의 버튼 target을 할당
  var index = target.index(); //6개 버튼에 인텍스 할당
  var section = contents.eq(index); //6개의 컨텐츠에 인덱스 할당
  var offset = section.offset().top; //6개의 컨텐츠의 offset 값을 할당
  $("html, body").animate({ scrollTop:offset},400);