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

              
                
<nav id="nav">
    <h1>CHOHEE</h1>
    <ul>
        <li class="active"><a href="#section1">menu1</a></li>
        <li><a href="#section2">menu2</a></li>
        <li><a href="#section3">menu3</a></li>
        <li><a href="#section4">menu4</a></li>
        <li><a href="#section5">menu5</a></li>
        <li><a href="#section6">menu6</a></li>
    </ul>
</nav>

<div id="contents">
	<div id="section1">
		<div class="container">
			<h2>Think Different</h2>
			<div class="img1">
				<div><img src="http://choheebaek.com/parallax/img/imgg01.jpg" alt=""></div>
			</div>
		</div>
	</div>
	<div id="section2">
		<div class="container">
			<h2>Think Different</h2>
			<div class="column-wrap img2">
				<div class="column two"><img src="http://choheebaek.com/parallax/img/imgg01.jpg" alt=""></div>
				<div class="column two"><img src="http://choheebaek.com/parallax/img/imgg02.jpg" alt=""></div>
			</div>
		</div>
	</div>
	<div id="section3">
		<div class="container">
			<h2>Think Different</h2>
			<div class="column-wrap img3">
				<div class="column three"><img src="http://choheebaek.com/parallax/img/imgg01.jpg" alt=""></div>
				<div class="column three"><img src="http://choheebaek.com/parallax/img/imgg02.jpg" alt=""></div>
				<div class="column three"><img src="http://choheebaek.com/parallax/img/imgg03.jpg" alt=""></div>
			</div>
		</div>
	</div>
	<div id="section4">
		<div class="container">
			<h2>Think Different</h2>
			<div class="column-wrap img4">
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg01.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg02.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg03.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg04.jpg" alt=""></div>
			</div>
		</div>
	</div>
	<div id="section5">
		<div class="container">
			<h2>Think Different</h2>
			<div class="column-wrap img5">
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg01.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg02.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg03.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg04.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg05.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg06.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg07.jpg" alt=""></div>
				<div class="column four"><img src="http://choheebaek.com/parallax/img/imgg08.jpg" alt=""></div>
			</div>
		</div>
	</div>
	<div id="section6">
		<h2>Think Different</h2>
		<div class="column-wrap img6">
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b1.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b3.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b4.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b5.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b6.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b7.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b8.jpg" alt=""></div>
				<div class="column four"><img src="http://webstoryboy9.dothome.co.kr/parallax/img/b1.jpg" alt=""></div>
			</div>
	</div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Poiret+One');

/* nav */
#nav {overflow:hidden; position:fixed; left:0; top:0; width: 100%; background-color: rgba(255,255,255,0.6);  z-index:10000; }
#nav h1 {float:left; color: #fff; font-size:40px; padding:12px 5px 5px 20px; font-weight:900;   }
#nav ul {float:right;}
#nav ul li {display: inline;}
#nav ul li a {padding: 20px 10px; text-decoration: none; color: #fff; display:inline-block;}
#nav ul li.active a {border-bottom: 3px solid #fff;}


/* layout */
#contents {font-family: 'Poiret One', cursive; }
#contents > div {padding: 100px 0; text-align: center;}
#contents > div h2 {font-size: 55px; color:#fff; padding-bottom:50px; }

#section1 {background: linear-gradient(0deg, #2c3307, #605e21);}
#section2 {background: linear-gradient(0deg, #2c3307, #605e21);}
#section3 {background: linear-gradient(0deg, #2c3307, #605e21);}
#section4 {background: linear-gradient(0deg, #2c3307, #605e21);}
#section5 {background: linear-gradient(0deg, #2c3307, #605e21);}
#section6 {background: linear-gradient(0deg, #2c3307, #605e21);}

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

/* img */
.img1 img {width:400px; opacity: 0; transition: opacity 0.9s ease-in-out;}
.img1.show img {opacity: 1;}

/* column-wrap */
.column-wrap {overflow: hidden; }
.column {float: left; box-sizing: border-box;}
.column img {width: 100%;}
.column.one {width: 100%;}
.column.two {width: 50%;}
.column.three {width: 33.33333%;}
.column.four {width: 25%;}
.column.five {width: 20%;}
.column.six {width: 16.6666%;}
.column.eight {width: 12.5%;}

.column-wrap .column {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap .column.show {opacity: 1; }

.column-wrap.img3 .column {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap.img3 .column.show {opacity: 1; animation: wobble 1s ease-in-out;}

.column-wrap.img4 .column {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap.img4 .column.show {opacity: 1; animation: swing 1s ease-in-out;}

.column-wrap.img5 .column {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap.img5 .column.show {opacity: 1; animation: rubberBand 1s ease-in-out;}

.column-wrap.img6 .column {opacity: 0; transition: all 0.9s ease-in-out;}
.column-wrap.img6 .column.show {opacity: 1; animation: jello 1s ease-in-out;}
              
            
!

JS

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

nav.click(function(){
    var target = $(this);                   //6개의 버튼 타겟을 변수 target 할당
    var index = target.index();     //6개의 버튼에 인덱스를 할당
    //alert(index);
    var section = contents.eq(index);       //6개의 컨텐츠에 인덱스 할당
    var offset = section.offset().top;  //6개의 컨텐츠의 offset 값을 할당
    //alert(offset);
    $("html, body").animate({ scrollTop:offset},400);
});

$(window).scroll(function(){
    var wScroll = $(this).scrollTop();
    
    if(wScroll >= contents.eq(0).offset().top){
        nav.removeClass("active");
        nav.eq(0).addClass("active");
				$(".img1").addClass("show");
    }
    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(1).offset().top-400){
			//$(".img2").addClass("show");
			$(".img2 > div").each(function(i){
				setTimeout(function(){
					$(".img2 > div").eq(i).addClass("show");
				},200 * (i+2) );
			});
		}
	
		if(wScroll >= contents.eq(2).offset().top-400){
			$(".img3 > div").each(function(i){
				setTimeout(function(){
					$(".img3 > div").eq(i).addClass("show");
				},200 * (i+2) );
			});
		}
	
		if(wScroll >= contents.eq(3).offset().top-400){
			$(".img4 > div").each(function(i){
				setTimeout(function(){
					$(".img4 > div").eq(i).addClass("show");
				},200 * (i+2) );
			});
		}
	
		if(wScroll >= contents.eq(4).offset().top-400){
			$(".img5 > div").each(function(i){
				setTimeout(function(){
					$(".img5 > div").eq(i).addClass("show");
				},200 * (i+2) );
			});
		}
	
		if(wScroll >= contents.eq(5).offset().top-400){
			$(".img6 > div").each(function(i){
				setTimeout(function(){
					$(".img6 > div").eq(i).addClass("show");
				},200 * (i+2) );
			});
		}
	
});
              
            
!
999px

Console