Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <link href="https://fonts.googleapis.com/css?family=Marcellus+SC" rel="stylesheet">

<div id="dot2">
  <ul>
    <li class="on"><a href="#section1"><span>Intro</span></a></li>
    <li><a href="#section2"><span>Skill</span></a></li>
    <li><a href="#section3"><span>Website</span></a></li>
    <li><a href="#section4"><span>Work</span></a></li>
    <li><a href="#section5"><span>About</span></a></li>
    <li><a href="#section6"><span>Contact</span></a></li>
  </ul>
</div>                                                                                                       
<div id="contents">
  <div id="section1">
    <div class="container">
      <div class="sec1">
        <h2>
          <span>I</span>
          <span>`</span>
          <span class="mr15">m</span> 
          <span>h</span>
          <span>u</span>
          <span>r</span>
          <span>t</span>
          <span>i</span>
          <span>n</span>
          <span class="mr15">g</span>
          <span>b</span>
          <span>a</span>
          <span>b</span>
          <span>y</span>
          <span>,</span> 
        </h2>
      </div>
    </div>
  </div>
  <div id="section2">
    <div class="container">
      <div class="sec2">
        <h2>
          <span  class="mr15">I</span> 
          <span>n</span>
          <span>e</span>
          <span>e</span>
          <span  class="mr15">d</span> 
          <span>y</span>
          <span>o</span>
          <span>u</span>
          <span class="mr15">r</span>
          <span>l</span>
          <span>o</span>
          <span>v</span>
          <span>i</span>
          <span>n</span>
          <span>g</span>
          <span>,</span> 
          </h2>
      </div>
    </div>
  </div>
  <div id="section3">
    <div class="container">
      <div class="sec3">
        <h2>
          <span class="mr15">I</span> 
          <span>n</span>
          <span>e</span>
          <span>e</span>
          <span class="mr15">d</span> 
          <span>i</span>
          <span class="mr15">t</span> 
          <span>n</span>
          <span>o</span>
          <span>w</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section4">
    <div class="container">
      <div class="sec4">
        <h2>
          <span>W</span>
          <span>h</span>
          <span>e</span>
          <span class="mr15">n</span>
          <span>I</span>
          <span>`</span>
          <span class="mr15">m</span>
          <span>w</span>
          <span>i</span>
          <span>t</span>
          <span>h</span>
          <span>o</span>
          <span>u</span>
          <span class="mr15">t</span>
          <span>y</span>
          <span>o</span>
          <span>u</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section5">
    <div class="container">
      <div class="sec5">
        <h2>
          <span>I</span>
          <span>`</span>
          <span class="mr15">m</span>
          <span>s</span>
          <span>o</span>
          <span>m</span>
          <span>e</span>
          <span>t</span>
          <span>h</span>
          <span>i</span>
          <span>n</span>
          <span class="mr15">g</span> 
          <span>w</span>
          <span>e</span>
          <span>a</span>
          <span>k</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section6">
    <div class="container">
      <div class="sec6">
        <h2>
          <span>Y</span>
          <span>o</span>
          <span class="mr15">u</span>
          <span>g</span>
          <span>o</span>
          <span class="mr15">t</span>
          <span>m</span>
          <span class="mr15">e</span> 
          <span>b</span>
          <span>e</span>
          <span>g</span>
          <span>g</span>
          <span>i</span>
          <span>n</span>
          <span>g</span>
        </h2>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /* contents */

#contents {font-family: 'Marcellus SC', serif;; text-align: center; font-size: 70px; color:#fff;}
#contents > div {height: 100vh; line-height: 100vh;}

#section1 {background: linear-gradient(150deg, #5ee7df 50%, #b490ca 50%);}
#section2 {background: linear-gradient(150deg, #fbc2eb 50%, #a6c1ee 50%)}
#section3 {background: linear-gradient(150deg, #f68084 50%, #92fe9d 50%)}
#section4 {background: linear-gradient(150deg, #6991c7 50%, #30cfd0 50%)}
#section5 {background: linear-gradient(150deg, #9795f0 50%, #feada6 50%)}
#section6 {background: linear-gradient(150deg, #ebbba7 50%, #cfc7f8 50%)}


/* dot2 */
#dot2 {position: fixed; right: 40px; top: 50%; transform:translatey(-50%);}
#dot2 li {width:17px; height: 17px; background-color: rgba(0,0,0,0.51);; border-radius:50%; margin: 16px 7px;}
#dot2 li a {color: #fff; text-decoration: none; padding: 8px 15px 5px 15px; position:relative;  }
#dot2 li a span {opacity:0; position: absolute; right:35px; top:2px; background-color: rgba(0,0,0,0.51); padding: 9px 10px 8px 10px; transition: all 0.3s ease; border-radius:5px;}
#dot2 li a span:after {content:''; position:absolute; right:-7px; top:9px; 
    border-left: 7px solid rgba(0,0,0,0.51);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
#dot2 li.on {background-color: rgba(0,0,0,0.71);}
#dot2 li.on a span {opacity: 1; right:25px; }

h2 span {margin-left:-19px; display: inline-block;}
h2 span.mr15 {margin-right:15px;}

.sec1 h2 span{opacity: 0; }
.sec1 h2 span.show {opacity: 1; animation: flipInX 1s ease-in-out }
.sec2 h2 span {opacity: 0; transition: all 0.6s ease; }
.sec2 h2 span.show {opacity: 1; animation: zoomIn 1s ease-in-out}
.sec3 h2 span{opacity: 0; transition: all 0.6s ease; }
.sec3 h2 span.show {opacity: 1; animation: bounceInLeft 1s ease-in-out}
.sec4 h2 span{opacity: 0; transition: all 0.6s ease; }
.sec4 h2 span.show {opacity: 1; animation: wobble 1s ease-in-out}
.sec5 h2 span{opacity: 0; transition: all 0.6s ease; }
.sec5 h2 span.show {opacity: 1; animation: rotateInUpRight 1s ease-in-out}
.sec6 h2 span {opacity: 0; transition: all 0.6s ease; }
.sec6 h2 span.show {opacity: 1; animation: flash 1s ease-in-out}
              
            
!

JS

              
                var dot2 = $("#dot2 > ul > li");
var contents = $("#contents > div");

dot2.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){
        dot2.removeClass("on");
        dot2.eq(0).addClass("on");
    }
    if(wScroll >= contents.eq(1).offset().top){
        dot2.removeClass("on");
        dot2.eq(1).addClass("on");
    }
    if(wScroll >= contents.eq(2).offset().top){
        dot2.removeClass("on");
        dot2.eq(2).addClass("on");
    }
    if(wScroll >= contents.eq(3).offset().top){
        dot2.removeClass("on");
        dot2.eq(3).addClass("on");
    }
    if(wScroll >= contents.eq(4).offset().top){
        dot2.removeClass("on");
        dot2.eq(4).addClass("on");
    }
    if(wScroll >= contents.eq(5).offset().top){
        dot2.removeClass("on");
        dot2.eq(5).addClass("on");
    }
    
        if(wScroll > contents.eq(0).offset().top){
            $(".sec1 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec1 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
        if(wScroll >= contents.eq(1).offset().top - $(window).height()/3){
            $(".sec2 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec2 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
        if(wScroll >= contents.eq(2).offset().top - $(window).height()/3){
            $(".sec3 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec3 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
        if(wScroll >= contents.eq(3).offset().top - $(window).height()/3){
            $(".sec4 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec4 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
        if(wScroll >= contents.eq(4).offset().top - $(window).height()/3){
            $(".sec5 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec5 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
        if(wScroll >= contents.eq(5).offset().top - $(window).height()/3){
            $(".sec6 h2 span").each(function(i){
							setTimeout(function(){
								$(".sec6 h2 span").eq(i).addClass("show");					 
							},100*(i+1));
						});
        }
});
              
            
!
999px

Console