cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <nav id="dot">
	<ul>
		<li class="active"><a href="#"><em>Intro</em></a></li>
		<li><a href="#"><em>Skill</em></a></li>
		<li><a href="#"><em>Website</em></a></li>
		<li><a href="#"><em>Work</em></a></li>
		<li><a href="#"><em>About</em></a></li>
		<li><a href="#"><em>Contact</em></a></li>
	</ul>
</nav>

<section id="contents">
	<div id="section1">
		<div class="container">
			<div class="sec1">
				<h2>Raise Your Head</h2>
				<div class="column-wrap">
					<div class="column"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg1.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="section2">
		<div class="container">
			<div class="sec2">
				<h2>Think Different</h2>
				<div class="column-wrap">
					<div class="column col2"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg2.jpg" alt="">
					</div>
					<div class="column col2"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg2.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="section3">
		<div class="container">
			<div class="sec3">
				<h2>The Life is only once</h2>
				<div class="column-wrap">
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
					<div class="column col3"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg3.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="section4">
		<div class="container">
			<div class="sec4">
				<h2>I must do what I want to do</h2>
				<div class="column-wrap">
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
					<div class="column col4"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg4.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="section5">
		<div class="container">
			<div class="sec5">
				<h2>Time is Life itself</h2>
				<div class="column-wrap">
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg5.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="section6">

			<div class="sec6">
				<h2>There is no destiny</h2>
				<div class="column-wrap">
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
					<div class="column col5"><img src="https://tistory4.daumcdn.net/tistory/2141493/skin/images/pimg6.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
</section>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');
/* font-family: 'Quicksand', sans-serif; */

/* reset */
*{margin:0; padding:0}
li,ul {list-style:none}
a {text-decoration:none}

/* dot */
#dot {
	position: fixed; right:20px; top: 50%; 
	transform: translatey(-50%);
}
#dot li {
	position:relative; width: 16px; height: 16px; 
	margin: 8px;
}
#dot li a {
	position: absolute; top: 0; left: 0;
	width: 100%; height: 100%; outline: none;
	border-radius: 50%;
	background-color: #fff;
	background-color: rgba(255, 255, 255, 0.3);
	text-indent: -999em;
	cursor: pointer;
	border: 2px solid #fff; 
	transition: border-color 0.3s ease;
}
#dot li a:after {
	content: ''; position: absolute; top: 0; left: 0;
	width: 100%; height: 100%;
	visibility: hidden;  opacity: 0;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 1px #fff;
	transform: scale(3);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
#dot li.active a {
	border-color: #fff;
}
#dot li.active a:after {
	visibility: visible;
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
/* contents */
#contents {
	text-align: center; 
	font-family: 'Quicksand', sans-serif;
}
#contents > div {
	padding: 7em 0;
}
#contents > div h2 {
	color: #fff;
	font-size: 30px;
	padding-bottom: 2em;
}
/* section */
#section1 {background: #1a237e}
#section2 {background: #08645a;}
#section3 {background: #0C7E4C;}
#section4 {background: #342d7d;}
#section5 {background: #1b2d93;}
#section6 {background: #8c5848;}

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

.column {opacity:0; transition: all 0.35s ease-in-out;}
.column.show {opacity:1;}
.sec2 .column.show {animation: fadeIn 0.45s;} 
.sec3 .column.show {animation: zoomIn 0.45s;} 
.sec4 .column.show {animation: shake 0.45s;} 
.sec5 .column.show {animation: jello 0.65s;} 
.sec6 .column.show {animation: pulse 0.45s forwards;} 

/* column-wrap */
.column-wrap img {width: 100%; display: block;}
.column-wrap {overflow: hidden;}
.column-wrap .column {float: left;}
.column-wrap .col1 {width: 100%;}
.column-wrap .col2 {width: 50%;}
.column-wrap .col3 {width: 33.3333%;}
.column-wrap .col4 {width: 25%;}
.column-wrap .col5 {width: 20%;}
.column-wrap .col6 {width: 16.6666%;}
.sec6 .column-wrap {padding: 0;}

/* mediaQuery */
@media (max-width:1220px){
	.container {width: 100%;}
}

@media (max-width:960px){
	.column-wrap .col2 {width: 50%;}
	.column-wrap .col3 {width: 50%;}
	.column-wrap .col4 {width: 50%;}
	.column-wrap .col5 {width: 50%;}
	.column-wrap .col6 {width: 50%;}
}

@media (max-width:768px){
	.column-wrap {padding: 0 15px;}
}

@media (max-width:600px){ 
	.column-wrap .col2 {width: 100%;}
	.column-wrap .col3 {width: 100%;}
	.column-wrap .col4 {width: 100%;}
	.column-wrap .col5 {width: 100%;}
	.column-wrap .col6 {width: 100%;}
}
            
          
!
            
              
var nav = $("#dot ul li");
var contents = $("#contents > div");

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


$(window).scroll(function(){
	var wScroll = $(this).scrollTop();
	
	if(wScroll >= contents.eq(0).offset().top){
		nav.removeClass("active");
		nav.eq(0).addClass("active");
	}
	if(wScroll >= contents.eq(1).offset().top){
		nav.removeClass("active");
		nav.eq(1).addClass("active");
	}
	if(wScroll >= contents.eq(2).offset().top){
		nav.removeClass("active");
		nav.eq(2).addClass("active");
	}
	if(wScroll >= contents.eq(3).offset().top){
		nav.removeClass("active");
		nav.eq(3).addClass("active");
	}
	if(wScroll >= contents.eq(4).offset().top){
		nav.removeClass("active");
		nav.eq(4).addClass("active");
	}
	if(wScroll >= contents.eq(5).offset().top){
		nav.removeClass("active");
		nav.eq(5).addClass("active");
	}
	
	
	if(wScroll >= contents.eq(0).offset().top - $(window).height()/3){
		$(".sec1 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec1 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
	if(wScroll >= contents.eq(1).offset().top - $(window).height()/3){
		$(".sec2 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec2 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
	if(wScroll >= contents.eq(2).offset().top - $(window).height()/3){
		$(".sec3 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec3 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
	if(wScroll >= contents.eq(3).offset().top - $(window).height()/3){
		$(".sec4 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec4 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
	if(wScroll >= contents.eq(4).offset().top - $(window).height()/3){
		$(".sec5 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec5 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
	if(wScroll >= contents.eq(5).offset().top - $(window).height()/3){
		$(".sec6 .column-wrap > div").each(function(i){
			setTimeout(function(){
				$(".sec6 .column-wrap > div").eq(i).addClass("show");
			},100*(i+1));
		});
	}
});



            
          
!
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.
Loading ..................

Console