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.

            
              <div id="dot1">
  <h1>BYC</h1>
  <ul>
    <li class="on"><a href="#section1">Intro</a></li>
    <li><a href="#section2">Skill</a></li>
    <li><a href="#section3">Website</a></li>
    <li><a href="#section4">Work</a></li>
    <li><a href="#section5">about</a></li>
    <li><a href="#section6">contact</a></li>
  </ul>
</div>
<div id="contents">
  <div id="section1">
    <div class="container">
      <div class="sec1">
        <h2>Life can be so hard to breathe</h2>

          </div>
        <div class="img1">
          <img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt="">
        </div>
      </div>
    </div>
  <div id="section2">
    <div class="container">
      <div class="sec2">
        <h2>When you're trapped inside a box</h2>
              <div class="column-wrap img2">
                <div class="coloumn two"> <img src="http://b-pencil.co.kr/parallax/img/0822_2.png" alt="" width="400"></div>
                <div class="coloumn two"><img src="http://b-pencil.co.kr/parallax/img/0822_3.jpg" alt="" width="400"></div>
              </div>          

      </div>
    </div>
  </div>
  <div id="section3">
    <div class="container">
      <div class="sec3">
        <h2>You're waiting for a break to come</h2>
            <div class="column-wrap img3">
                <div class="coloumn three"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
                <div class="coloumn three"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt=""></div>
               <div class="coloumn three"> <img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt=""></div>
           </div>
      </div>
    </div>
  </div>
  <div id="section4">
    <div class="container">
      <div class="sec4">
        <h2>It always comes too late</h2>

          <div class="column-wrap img4">
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
           <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt="" ></div>
          <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt="" ></div>

        </div>

    </div>
  </div>
</div>
  <div id="section5">
    <div class="container">
      <div class="sec5">
        <h2>You're on the edge just stumbling
</h2>

           <div class="column-wrap img5">
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt="" ></div>              
          </div>

      </div>
    </div>
  </div>
  <div id="section6">

      <div class="sec6">
        <h2>And the road it starts to wind</h2>
        <div class="column-wrap img6">
          <div class="coloumn">
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822-1.jpg" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822_4.png" alt=""></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).jpg" alt="" ></div>
            <div class="coloumn four"><img src="http://b-pencil.co.kr/parallax/img/0822 (2).png" alt="" ></div>
          </div>
</div>
    </div>
  </div>
</div>

            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Poiret+One');

/* layout */
#contents {color: white; font-size: 40pt; font-family: 'Poiret One', cursive; font-weight: 600; }
#contents>div { padding: 100px 0; text-align: center;
  background-size: cover;
 background-repeat: no-repeat;
 background-position: center;
}
#contents > div h2 {padding: 30px 0 50px;}

/* container */
.container {width: 1200px; margin: 0 auto;}

#section1 {background:linear-gradient(0deg, #E688A6, #F1A8A8);}
#section2 {background: linear-gradient(0deg, #ACCCDB, #C7A0C4); }
#section3 {background: linear-gradient(0deg, #F0AB90, #335B7A); }
#section4 {background: linear-gradient(0deg, #CD6574, #433D6C);}
#section5 {background: black}
#section6 {background: darkblue}

/* dot1 */
#dot1 {overflow: hidden; position: fixed; right: 0px; top: 0px;  width: 100%; background-color: rgba(255,255,255,0.6); }
#dot1 h1 {float:left; color: #fff; font-size:40px; padding:8px 5px 8px 20px; font-weight:900; }
#dot1 ul {float: right;  }
#dot1 ul li {display: inline;}
#dot1 li a { color:#fff; text-decoration: none; padding: 20px 10px; display: inline-block; }   
#dot1 li.on a { background-color: rgba(0,0,0,0.5); border-radius:10px 0; }




/* img */
.img1 img {width:400px; opacity: 0; transition: opacity 0.9s ease-in-out }
.img1.show img {opacity: 1; }


.column-wrap .coloumn img {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap .coloumn.show img {opacity: 1; }

.column-wrap.img3 .coloumn.show {opacity: 1; animation: pulse 1s ease-in-out;}
.column-wrap.img4 .coloumn.show {opacity: 1; animation: rubberBand 1s ease-in-out;}
.column-wrap.img5 .coloumn.show {opacity: 1; animation: jellow 1s ease-in-out;}
.column-wrap.img6 .coloumn.show {opacity: 1; animation: bounceInRight 1s ease-in-out;}

/* column-wrap */
.column-wrap {overflow: hidden; }
.coloumn {float: left; box-sizing:border-box; }
.coloumn img {width: 100%; }
.coloumn.one {width: 100%; }
.coloumn.two {width: 50%; }
.coloumn.three {width: 33.3%; }
.coloumn.four {width: 25%; }
.coloumn.five {width: 20%; }
.coloumn.six {width: 16.66666%; }
.coloumn.eight {width: 12.5%; }
            
          
!
            
              var dot1 = $("#dot1>ul>li")
var contents = $('#contents>div');

dot1.on("click",function(e){
  e.preventDefault();
  
  var target = $(this);
  var index = target.index(); 
  var section = contents.eq(index);
  var offset = section.offset().top;
  
  $("body, html").animate({scrollTop:offset},400);
   });

  $(window).on("scroll",function(){
    var wScroll=$(this).scrollTop();
  

    if(wScroll>=contents.eq(0).offset().top){
    dot1.removeClass("on");
    dot1.eq(0).addClass("on");
    $(".img1").addClass("show");
    
    };
    if(wScroll>=contents.eq(1).offset().top){
    dot1.removeClass("on");
    dot1.eq(1).addClass("on");
    
    
    };

    if(wScroll>=contents.eq(2).offset().top){
    dot1.removeClass("on");
    dot1.eq(2).addClass("on");
     $(".img3").addClass("show");
    };

    if(wScroll>=contents.eq(3).offset().top){
    dot1.removeClass("on");
    dot1.eq(3).addClass("on");

    };
    if(wScroll>=contents.eq(4).offset().top){
    dot1.removeClass("on");
    dot1.eq(4).addClass("on");
    };
    if(wScroll>=contents.eq(5).offset().top){
    dot1.removeClass("on");
    dot1.eq(5).addClass("on");
    };
    
    
    if(wScroll>=contents.eq(1).offset().top){
    $(".img2>div").each(function(i){
      setTimeout(function(){
        $(".img2>div").eq(i).addClass("show") 
      },200*(i+2))                         
    });
   };
    
    if(wScroll>=contents.eq(2).offset().top){
    $(".img3>div").each(function(i){
      setTimeout(function(){
        $(".img3>div").eq(i).addClass("show") 
      },200*(i+2))                         
    });
   };
    if(wScroll>=contents.eq(3).offset().top){
    $(".img4>div").each(function(i){
      setTimeout(function(){
        $(".img4>div").eq(i).addClass("show") 
      },200*(i+2))                         
    });
   };
    if(wScroll>=contents.eq(4).offset().top){
    $(".img5>div").each(function(i){
      setTimeout(function(){
        $(".img5>div").eq(i).addClass("show") 
      },200*(i+2))                         
    });
   };    
    if(wScroll>=contents.eq(5).offset().top){
    $(".img6>div").each(function(i){
      setTimeout(function(){
        $(".img6>div").eq(i).addClass("show") 
      },200*(i+2))                         
    });
   };    
  });

            
          
!
999px
🕑 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.

Console