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.

              <link href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i" 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">글씨가 <strong>깔끔!</strong></div> 
  <div id="section2">We <strong>love</strong> What You do.</div>
  <div id="section3"> A poet is the <strong>painter of the soul.</strong></div>
  <div id="section4">Better is to <strong>bow than break.</strong></div>
  <div id="section5">Faith without <strong>deeds is useless.</strong></div>
  <div id="section6">Habit is <strong>second nature.</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: #fff; 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);

clearfix:after {clear:both;}
#contents {
  text-align: center; color:#fff; font-size: 60px;
  font-family: 'Lato', sans-serif; font-weight:100;
#contents > div {
  height: 100vh; line-height: 100vh;
#section1 {
  background: radial-gradient(#00537E , #3AA17E);  
#section1 strong {font-weight:900;}
#section2 {
  background: radial-gradient(ellipse farthest-corner at bottom right, #45145A   0%, #FF5300 100%);
#section2 strong {font-weight:900;}
#section3 {
  background: radial-gradient(ellipse farthest-corner at bottom left, #00A8C5  0%, #FFFF7E 100%);
#section3 strong {font-weight:900;}
#section4 {
  background: radial-gradient(ellipse farthest-corner at right bottom, #B066FE  10%, #63E2FF 80%);
#section4 strong {font-weight:900;}
#section5 {
  background: radial-gradient(ellipse farthest-corner at center right, #93278F  0%, #00A99D 100%);
#section5 strong {font-weight:900;}
#section6 {
  background: radial-gradient(ellipse farthest-corner at top right, #8E78FF  20%, #FC7D7B 80%);
#section6 strong {font-weight:900;}

	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 });
		$(this).stop().animate({top:wHeight - $("#nav").innerHeight()},300);

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

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