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

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=Amatic+SC|Dosis|Julius+Sans+One|Quicksand|Rajdhani|Tangerine" rel="stylesheet">
<div id="dot2">
  <ul>
    <li class="on"><a href="#section1"><span class="on">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>S</span>
          <span>i</span>
          <span>m</span>
          <span>m</span>
          <span>e</span>
          <span>r</span>
          <span>*</span>
          <span>d</span>
          <span>o</span>
          <span>w</span>
          <span>n</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section2">
    <div class="container">
      <div class="sec2">
        <h2 class="ab">
          <span>T</span>
          <span>h</span>
          <span>e</span>
          <span>y</span>
          <span>_</span>
          <span>s</span>
          <span>a</span>
          <span>y</span>
          <span>_</span>
          <span>w</span>
          <span>e</span>
          <span>'</span>
          <span>r</span>
          <span>e</span>
        </h2>
        <h2 class="add">
          <span>t</span>
          <span>o</span>
          <span>o</span>
          <span>_</span>
          <span>y</span>
          <span>o</span>
          <span>u</span>
          <span>n</span>
          <span>g</span>
          <span>*</span>
          <span>n</span>
          <span>o</span>
          <span>w</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section3">
    <div class="container">
      <div class="sec3">
        <h2> 
          <span>t</span>
          <span>o</span>
          <span>*</span>
          <span>a</span>
          <span>m</span>
          <span>o</span>
          <span>u</span>
          <span>n</span>
          <span>t</span>
          <span>*</span>
          <span>t</span>
          <span>o</span>
          <span>*</span>
          <span>a</span>
          <span>n</span>
          <span>y</span>
          <span>t</span>
          <span>h</span>
          <span>i</span>
          <span>n</span>
          <span>g</span>
          <span>*</span>
          <span>e</span>
          <span>l</span>
          <span>s</span>
          <span>e</span>
         </h2>
      </div>
    </div>
  </div>
  <div id="section4">
    <div class="container">
      <div class="sec4">
        <h2>
          <span>B</span>
          <span>u</span>
          <span>t</span>
          <span>*</span>
          <span>l</span>
          <span>o</span>
          <span>o</span>
          <span>k</span>
          <span>*</span>
          <span>a</span>
          <span>r</span>
          <span>o</span>
          <span>u</span>
          <span>n</span>
          <span>d</span>
        </h2>
      </div>
    </div>
  </div>
  <div id="section5">
    <div class="container">
      <div class="sec5">
        <h2>
          <span>W</span>
          <span>e</span>
          <span>*</span>
          <span>w</span>
          <span>o</span>
          <span>r</span>
          <span>k</span>
          <span>*</span>
          <span>t</span>
          <span>o</span>
          <span>o</span>
          <span>*</span>
          <span>d</span>
          <span>a</span>
          <span>m</span>
          <span>n</span>
          <span>*</span>
          <span>h</span>
          <span>a</span>
          <span>r</span>
          <span>d</span>
      </h2>
      </div>
    </div>
  </div>
  <div id="section6">
    <div class="container">
      <div class="sec6">
        <h2>
          <span>f</span>
          <span>o</span>
          <span>r</span>
          <span>*</span>
          <span>t</span>
          <span>h</span>
          <span>i</span>
          <span>s</span>
          <span>*</span>
          <span>j</span>
          <span>u</span>
          <span>s</span>
          <span>t</span>
          <span>*</span>
        </h2>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /* contents */
#contents { text-align: center; font-size: 80px;color:white; }
#contents > div { height: 100vh; }
#section1 {font-family: 'Amatic SC', cursive; background: linear-gradient(45deg, #DDD2A7 50%, #727891 50%)}
#section2 {font-family: 'Dosis', sans-serif; background: linear-gradient(180deg, #F7B473 50%,  #93A9D0 50%);} 
#section3 {font-family: 'Quicksand', cursive; font-size: 60px; background: linear-gradient(120deg, #E37495 50%, #F7D0A4 50%)}
#section4 {font-family: 'Rajdhani', sans-serif;
 background: linear-gradient(150deg, #AF7DC6 50%, #CF9DCB 50%)}
#section5 { font-family:'Tangerine', cursive; background: linear-gradient(90deg, #C58ED3 50%, #5E9DBC 50%)}
#section6 { font-family:'Julius Sans One', sans-serif; font-size: 40px; background: linear-gradient(-45deg, #F4CDAA 50%, #E2D8CE 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: -5px; display: inline-block;  }
h2 {overflow: hidden; width: 100vhx; height: 75px; position: absolute; left: 0; top: 0; right: 0; bottom: 0; margin:auto;}
.sec2 {position: relative;  height:100vh;}
.sec2 h2.ab {overflow: hidden; width: 100vh; height: 80px; position: absolute; left: -80px; top: -89px; right: 0; bottom: 0; margin:auto;}
.sec2 h2.add {overflow: hidden; height: 80px; position: absolute; left: 80px; top: 80px; right: 0; bottom: 0; margin:auto;}
.sec3 {position: relative;  height:100vh;}
.sec4 {position: relative;  height:100vh;}
.sec5 {position: relative;  height:100vh;}
.sec6 {position: relative;  height:100vh;}


 h2 span {margin-left: -5px; display: inline-block;  }
 h2 span:nth-child(1)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(2)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(3)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(4)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(5)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(6)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(7)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(8)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(9)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(10)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(11)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(12)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(13)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(14)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(15)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(16)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(17)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(18)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(19)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(20)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(21)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(22)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(23)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(24)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(25)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(26)  {opacity: 0; transition: all 0.9s ease-in-out 0.4s;  transform: translatey(100px)}


 h2.show span:nth-child(1)  {opacity: 1; transform: translatey(0)}
 h2.show span:nth-child(2)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(3)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(4)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(5)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(6)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(7)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(8)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(9)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(10) {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(11) {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(12)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(13)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(14)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(15)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(16)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(17)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(18)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(19)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(20) {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(21) {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(22)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(23)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(24)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(25)  {opacity: 1;transform: translatey(0)}
 h2.show span:nth-child(26)  {opacity: 1;transform: translatey(0)}
              
            
!

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").addClass("show");
        }
        if(wScroll >= contents.eq(1).offset().top - $(window).height()/3){
            $(".sec2 h2").addClass("show");
        }
        if(wScroll >= contents.eq(2).offset().top - $(window).height()/3){
            $(".sec3 h2").addClass("show");
        }
        if(wScroll >= contents.eq(3).offset().top - $(window).height()/3){
            $(".sec4 h2").addClass("show");
        }
        if(wScroll >= contents.eq(4).offset().top - $(window).height()/3){
            $(".sec5 h2").addClass("show");
        }
        if(wScroll >= contents.eq(5).offset().top - $(window).height()/3){
            $(".sec6 h2").addClass("show");
        }
});
              
            
!
999px

Console