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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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=Abril+Fatface&amp;subset=latin-ext" 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>T</span>
									<span>h</span>
									<span>i</span>
									<span>n</span>
									<span>k</span>
									<span></span>
									<span>d</span>
									<span>i</span>
								  <span>f</span>
									<span>f</span>
									<span>e</span>
									<span>r</span>
									<span>e</span>
									<span>n</span>
									<span>t</span>
								</h2>
            </div>
        </div>
  </div>
  <div id="section2">
    <div class="container">
      <div class="sec2">
        <h2>
			  <span>D</span><span>a</span><span>n</span><span>g</span><span>e</span><span>r</span> <span>f</span><span>o</span>
<span>r</span><span>e</span><span>s</span><span>e</span><span>e</span><span>n</span>
<span>i</span><span>s</span> <span>h</span><span>a</span><span>l</span><span>f</span> <span>a</span><span>v</span><span>o</span>
<span>i</span><span>d</span><span>e</span><span>d</span><span>.</span>
			</h2>
      </div>
    </div>
  </div>
  <div id="section3">
    <div class="container">
      <div class="sec3">
        <h2>
			  <span>T</span>
				  <span>h</span>
					  <span>e </span>
						  <span>f</span>
							  <span>i</span>
								  <span>r</span>
									  <span>s</span>
										  <span>t </span>
											  <span>s</span>
												  <span>t</span>
													  <span>e</span>
														  <span>p</span>
			</h2>
      </div>
    </div>
  </div>
  <div id="section4">
    <div class="container">
      <div class="sec4">
        <h2>
			  <span>T</span>
				  <span>i</span>
					  <span>m</span>
						  <span>e</span>
							  <span>i</span>
								  <span>s</span>
									  <span>L</span>
										  <span>i</span>
											  <span>f</span>
												  <span>e </span>
													  <span>i</span>
														  <span>t</span>
															  <span>s</span>
																  <span>e</span>
																	  <span>l</span>
																		  <span>f</span>
			</h2>
      </div>
    </div>
  </div>
  <div id="section5">
    <div class="container">
      <div class="sec5">
        <h2> 
			  <span>D</span>
				  <span>r</span>
					  <span>e</span>
						  <span>a</span>
							  <span>m</span>
								  <span>s</span>
									  </h2>
      </div>
    </div>
  </div>
  <div id="section6">
    <div class="container">
      <div class="sec6">
        <h2>
			  <span>B</span>
				  <span>r</span>
					  <span>i</span>
						  <span>n</span>
							  <span>g</span>
						  <span>a </span>
							  <span>p</span>
								  <span>s</span>
									  <span>y</span>
										  <span>c</span>
											  <span>h</span>
												  <span>o</span>
													  <span>m</span>
														  <span>e</span>
															  <span>t</span>
																  <span>r</span>
																	  <span>y</span>
																	  	
																	  </h2>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /*contents*/
#contents { text-align: center;font-size: 70px; font-family: 'Abril Fatface', cursive; }
#contents > div { height: 100vh;color:#fff; }

#section1 { background: linear-gradient(40deg, #D76D77 50%, #FFAF7B 50%); }
#section2 { background: linear-gradient(160deg,#36D1DC 50%, #ffc0cb 50%); }
#section3 { background: linear-gradient(260deg, #654eba 50%, #ffdc1c 50%); }
#section4 { background: linear-gradient(360deg, #4eb9ba 50%, #C9D6FF 50%); }
#section5 { background: linear-gradient(20deg, #ba7e4e 50%, #F2F2F2 50%); }
#section6 { background: linear-gradient(60deg, #87857d 50%, #ffdc1c 50%); }

/* dot2 */
#dot2 {position: fixed; right: 40px; top: 50%; transform:translatey(-50%); z-index: 1000;}
#dot2 li {width:17px; height: 17px; background-color: rgba(255,255,255,0.5); border-radius:50%; margin: 20px 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:3px; background-color: rgba(0,0,0,0.51); padding: 8px 10px; transition: all 0.3s ease;}
#dot2 li a span:after {content:''; position:absolute; right:-7px; top:8px; 
    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(255,255,255,1);}
#dot2 li.on a span {opacity: 1; right:25px; }


.sec1 {  }
.sec1 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec1 h2 span {display:inline-block; margin-left:-5px;}

.sec1 h2 span:nth-child(5)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.6s;  transform: translatey(100px); margin-right:20px;}


.sec1 h2.show span:nth-child(1)  {opacity: 1; transform: translatey(0px)}
.sec1 h2.show span:nth-child(2)  {opacity: 1; transform: translatey(0px)}
.sec1 h2.show span:nth-child(3)  {opacity: 1; transform: translatey(0px)}
.sec1 h2.show span:nth-child(4)  {opacity: 1; transform: translatey(0px)}
.sec1 h2.show span:nth-child(5)  {opacity: 1; transform: translatey(0px); margin-right:20px;}
.sec1 h2.show span:nth-child(6)  {opacity: 1; transform: translatey(0px)}




#section2 { position: relative; }
.sec2 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec2 h2 span {display:inline-block;}
 h2 span:nth-child(1)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.4s;  transform: translatey(100px)}
 h2 span:nth-child(2)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.45s; transform: translatey(100px)}
 h2 span:nth-child(3)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.5s;  transform: translatey(100px)}
 h2 span:nth-child(4)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.55s; transform: translatey(100px)}
 h2 span:nth-child(5)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.6s;  transform: translatey(100px)} 
 h2 span:nth-child(6)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.65s; transform: translatey(100px)}
 h2 span:nth-child(7)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.7s;  transform: translatey(100px)}
 h2 span:nth-child(8)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.75s; transform: translatey(100px)}
 h2 span:nth-child(9)  {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.8s;  transform: translatey(100px)}
 h2 span:nth-child(10) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.85s; transform: translatey(100px)}
 h2 span:nth-child(11) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.9s;  transform: translatey(100px)}
 h2 span:nth-child(12) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 0.95s; transform: translatey(100px)}
 h2 span:nth-child(13) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.00s; transform: translatey(100px)}
 h2 span:nth-child(14) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.10s; transform: translatey(100px)}
 h2 span:nth-child(15) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.15s; transform: translatey(100px)}
 h2 span:nth-child(16) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.20s; transform: translatey(100px)}
 h2 span:nth-child(17) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.25s;  transform: translatey(100px)}
 h2 span:nth-child(18) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.3s; transform: translatey(100px)}
 h2 span:nth-child(19) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.35s; transform: translatey(100px)}
 h2 span:nth-child(20) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.4s; transform: translatey(100px)}
 h2 span:nth-child(21) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.45s; transform: translatey(100px)}
 h2 span:nth-child(22) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.5s; transform: translatey(100px)}
 h2 span:nth-child(23) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.55s;  transform: translatey(100px)}
 h2 span:nth-child(24) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.6s; transform: translatey(100px)}
 h2 span:nth-child(25) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.65s; transform: translatey(100px)}
 h2 span:nth-child(26) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.70s; transform: translatey(100px)}
 h2 span:nth-child(27) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.75s; transform: translatey(100px)}
 h2 span:nth-child(28) {opacity: 0; transition: all 0.9s cubic-bezier(0.65, 0.02, 0.23, 1) 1.80s; transform: translatey(100px)}
	

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


#section3 { position: relative; }
.sec3 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec3 h2 span {display:inline-block;}

#section4 { position: relative; }
.sec4 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec4 h2 span {display:inline-block;}

#section5 { position: relative; }
.sec5 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec5 h2 span {display:inline-block;}

#section6 { position: relative; }
.sec6 h2 {overflow: hidden; width:800px; height:80px; position: absolute; left:0; top:0; right:0; bottom:0; margin: auto;}
.sec6 h2 span {display:inline-block;}

              
            
!

JS

              
                var dot1 = $("#dot1 > ul > li");
var dot2 = $("#dot2 > 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");
        dot2.removeClass("on");
        dot2.eq(0).addClass("on");
    }
    if(wScroll >= contents.eq(1).offset().top){
        dot1.removeClass("on");
        dot1.eq(1).addClass("on");
        dot2.removeClass("on");
        dot2.eq(1).addClass("on");
    }
    if(wScroll >= contents.eq(2).offset().top){
        dot1.removeClass("on");
        dot1.eq(2).addClass("on");
        dot2.removeClass("on");
        dot2.eq(2).addClass("on");
    }
    if(wScroll >= contents.eq(3).offset().top){
        dot1.removeClass("on");
        dot1.eq(3).addClass("on");
        dot2.removeClass("on");
        dot2.eq(3).addClass("on");
    }
    if(wScroll >= contents.eq(4).offset().top){
        dot1.removeClass("on");
        dot1.eq(4).addClass("on");
        dot2.removeClass("on");
        dot2.eq(4).addClass("on");
    }
    if(wScroll >= contents.eq(5).offset().top){
        dot1.removeClass("on");
        dot1.eq(5).addClass("on");
        dot2.removeClass("on");
        dot2.eq(5).addClass("on");
    }
  if(wScroll >=contents.eq(0).offset().top - $(window).height()/3){
    $('.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