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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <link href="https://fonts.googleapis.com/css?family=Niconne&amp;subset=latin-ext" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lobster&amp;subset=latin-ext" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Kurale" rel="stylesheet">

<link href="https://fonts.googleapis.com/css?family=Fredericka+the+Great|Love+Ya+Like+A+Sister" rel="stylesheet">

<div id="dot2">
  <ul>
    <li class="current"><a href="#section1"></a><em class="on">Intro</em></li>
    <li><a href="#section2" ></a><em>Skill</em></li>
    <li><a href="#section3" ></a><em>Website</em></li>
    <li><a href="#section4" ></a><em>Work</em></li>
    <li><a href="#section5" ></a><em>about</em></li>
    <li><a href="#section6" ></a><em>Contact</em></li>
  </ul>
</div>

<div id="contents">
  <div id="section1">
    <div class="container">
      <div class="sec1">
        <h2>Simmer down</h2>
      </div>
    </div>
  </div>
  <div id="section2">
    <div class="container">
      <div class="sec2">
        <h2>They say we're too young now</h2>
      </div>
    </div>
  </div>
  <div id="section3">
    <div class="container">
      <div class="sec3">
        <h2> to amount to anything else</h2>
      </div>
    </div>
  </div>
  <div id="section4">
    <div class="container">
      <div class="sec4">
        <h2>But look around</h2>
      </div>
    </div>
  </div>
  <div id="section5">
    <div class="container">
      <div class="sec5">
        <h2>We work too damn hard</h2>
      </div>
    </div>
  </div>
  <div id="section6">
    <div class="container">
      <div class="sec6">
        <h2>for this just to give it up now</h2>
      </div>
    </div>
  </div>
</div>
            
          
!

CSS

            
              /* contents */
#contents { text-align: center; font-size: 80px; font-family: 'Niconne', cursive; color:white; }
#contents > div { height: 100vh; line-height: 100vh; }
#section1 {background: linear-gradient(45deg, #DDD2A7 50%, #727891 50%)}
#section2 {font-family: 'Lobster', cursive; background: linear-gradient(180deg, #F7B473 50%,  #93A9D0 50%); font-family:'Kurale', serif; } 
#section3 {font-family: 'Love Ya Like A Sister', cursive; background: linear-gradient(120deg, #E37495 50%, #F7D0A4 50%)}
#section4 {font-family: 'Fredericka the Great', cursive;
 background: linear-gradient(150deg, #AF7DC6 50%, #CF9DCB 50%)}
#section5 { font-family:'Kurale', serif; background: linear-gradient(90deg, #C58ED3 50%, #5E9DBC 50%)}
#section6 { background: linear-gradient(-45deg, #F4CDAA 50%, #E2D8CE 50%)}


/* dot2 */
#dot2 { position: fixed; right: 40px; top: 50%; transform:translatey(-50%); }  
#dot2 li  {
	position: relative;
	display: block;
	margin: 15px 16px;
	width: 10px;
	height: 10px;
}
#dot2 li a {
  top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
  overflow: hidden;
	background-color: transparent;
	text-indent: -999em; /* make the text accessible to screen readers */
	cursor: pointer;
	position: absolute;
	box-shadow: inset 0 0 0 1.4px white;
	transition: background 0.3s ease;}

#dot2 li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	height: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	box-shadow: 0 0 1px #fff;
	-webkit-transition: height 0.3s ease;
	transition: height 0.3s ease;
}

#dot2 li.current a::after {
	height: 100%;
}


/* em */


#dot2 li em { opacity:0; position: absolute; right:20px; top:-15px; color: white;  padding: 10px; border-radius: 5px; background-color: rgba(0,0,0,0.51); padding: 8px 10px; transition: all 0.3s ease;}
#dot2 li em:after {content:''; position: absolute; right:-5px; top: 15px; 
 border-left:5px solid rgba(0,0,0,0.51);
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}

#dot2 li.current em{opacity:1;  right:30px;}


/* sec */
.sec1 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec1 h2.show {opacity: 1; transform:translatey(0px)}

.sec2 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec2 h2.show {opacity: 1;  transform:translatey(0px)}

.sec3 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec3 h2.show {opacity: 1;  transform:translatey(0px)}

.sec4 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec4 h2.show {opacity: 1;  transform:translatey(0px)}

.sec5 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec5 h2.show {opacity: 1;  transform:translatey(0px)}

.sec6 h2 {opacity: 0; transition: all 0.6s ease; transform:translatey(45px);}
.sec6 h2.show {opacity: 1;  transform:translatey(0px)}
            
          
!

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().top200){
    dot2.removeClass("current");
    dot2.eq(0).addClass("current");
    };
    if(wScroll>=contents.eq(1).offset().top){
    dot2.removeClass("current");
    dot2.eq(1).addClass("current");
    };
    if(wScroll>=contents.eq(2).offset().top){
    dot2.removeClass("current");
    dot2.eq(2).addClass("current");
    };
    if(wScroll>=contents.eq(3).offset().top){
    dot2.removeClass("current");
    dot2.eq(3).addClass("current");
    };
    if(wScroll>=contents.eq(4).offset().top){
    dot2.removeClass("current");
    dot2.eq(4).addClass("current")
    };
    if(wScroll>=contents.eq(5).offset().top){
    dot2.removeClass("current");
    dot2.eq(5).addClass("current");
    };
 
		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