Welcolme my Tutorial blog

퍼블리셔와 디자이너를 위한 사이트입니다.
동영상과 소스를 보면서 따라하는 튜토리얼 사이트입니다.

Welcolme my Tutorial blog

웹 표준 사이트 따라하기 튜토리얼 입니다.
유튜브 영상과 같이 보면서 따라하는 튜토입니다.

Welcolme my Tutorial blog

사이트는 현재 만드는 중입니다.
버그와 잘못된 링크가 엄청 많습니다.

안녕하세요!

현재는 베타버전입니다.

이 사이트는 코딩을 동영상과 소스를 보면서 따라하는 튜토리얼 사이트입니다.

에디터가 드리는 인사

티스토리 뷰

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width">

    <title>Parallax</title>
    <link href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i'" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
    <style>
        /* reset */
        * {margin:0; padding:0; font-family: 'Lato';}
        li {list-style: none;}
        a {text-decoration: none;}
        
        /* nav */
        #nav {position: fixed; left: 0; top: 0px; width: 100%; height: 61px; z-index: 1000; background-color: rgba(255,255,255,0.3); transition: all 0.3s ease;}
        #nav.on {position: fixed; top: -61px;}
        #nav h1 {float: left; color: #fff; font-size: 40px; padding: 5px 5px 5px 15px; font-family: 'Abel' }
        
        /* dot */
        #dot {position: fixed; right: 20px; top:50%; transform: translatey(-50%);}
        #dot li {
            position: relative;
            width: 20px; height: 20px; border-radius:50%; 
            box-shadow: 0 0 0 2px rgba(255,255,255,0);
            margin: 8px;
            transition: box-shadow 0.3s ease;
        }
        #dot li a { 
            background-color: rgba(255,255,255,0.7);
            width: 100%; height: 100%;
            position: absolute; top:0; left: 0;
            border-radius: 50%;
            transition: background-color 0.3s ease, transform 0.3s ease;
        }
        #dot li.active {box-shadow: 0 0 0 2px rgba(255,255,255,1);}
        #dot li.active a {transform: scale(0.4);}
        #dot li a em {display: none;}        
        
        /* contents */
        #contents {text-align: center; color: #fff;}
        #contents > div {height: 100vh; line-height: 100vh;}
        #contents > div h2 {font-size: 70px; font-weight: 200; text-transform: uppercase;}
        #contents > div h2 strong {font-weight: 700; font-style: italic;}
        
        /* section */
        #section3 {background:radial-gradient(ellipse farthest-corner at center top, #A3A1FF, #3A3897);}
        #section2 {background:radial-gradient(ellipse farthest-corner at center bottom, #3AA17E, #00537E);}
        #section1 {background:radial-gradient(ellipse farthest-corner at center top, #29ABE2, #4F00BC);}
        #section4 {background:radial-gradient(ellipse farthest-corner at center top, #FF5300, #45145A);}
        #section5 {background:radial-gradient(ellipse farthest-corner at center bottom, #852D91, #312A6C);}
        #section6 {background:radial-gradient(ellipse farthest-corner at center top, #FBB03B, #D4145A);}
    </style>
</head>
<body>
    <nav id="nav">
        <h1>WEB'S</h1>
    </nav>
    
    <div id="dot">
        <ul>
            <li class="active"><a href="#"><em>menu1</em></a></li>
            <li><a href="#"><em>menu2</em></a></li>
            <li><a href="#"><em>menu3</em></a></li>
            <li><a href="#"><em>menu4</em></a></li>
            <li><a href="#"><em>menu5</em></a></li>
            <li><a href="#"><em>menu6</em></a></li>
        </ul>
    </div>

    <div id="contents">
        <div id="section1"><h2>우아한 <strong>성공은</strong> 없다.</h2></div>
        <div id="section2"><h2><strong>기회는</strong> 바로 옆에 있다.</h2></div>
        <div id="section3"><h2>현실을 <strong>외면하지 말라.</strong></h2></div>
        <div id="section4"><h2>공부는 우리 삶의 <strong>우선적 요소다.</strong></h2></div>
        <div id="section5"><h2><strong>기회가</strong> 없으면 만들면 된다.</h2></div>
        <div id="section6"><h2>모든 일은 <strong>스스로 해결하라.</strong></h2></div>
    </div>
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
    <script>
        var dot = $("#dot > ul > li");
        var cont = $("#contents > div");

        dot.click(function(e){
            e.preventDefault();
            var target = $(this);
            var index = target.index();
            //alert(index);
            var section = cont.eq(index);
            var offset = section.offset().top;
            $("html,body").animate({ scrollTop:offset },600,"easeInBounce");
        });

        $(window).scroll(function(){
            var wScroll = $(this).scrollTop();
            
            if(wScroll >= cont.eq(0).offset().top){
                dot.removeClass("active");
                dot.eq(0).addClass("active");
            }
            if(wScroll >= cont.eq(1).offset().top){
                dot.removeClass("active");
                dot.eq(1).addClass("active");
            }
            if(wScroll >= cont.eq(2).offset().top){
                dot.removeClass("active");
                dot.eq(2).addClass("active");
            }
            if(wScroll >= cont.eq(3).offset().top){
                dot.removeClass("active");
                dot.eq(3).addClass("active");
            }
            if(wScroll >= cont.eq(4).offset().top){
                dot.removeClass("active");
                dot.eq(4).addClass("active");
            }
            if(wScroll >= cont.eq(5).offset().top){
                dot.removeClass("active");
                dot.eq(5).addClass("active");
            }
        });
        
    </script>
</body>
</html>




<nav id="nav">
    <h1>WEB'S</h1>
</nav>

<div id="dot">
    <ul>
        <li class="active"><a href="#"><em>menu1</em></a></li>
        <li><a href="#"><em>menu2</em></a></li>
        <li><a href="#"><em>menu3</em></a></li>
        <li><a href="#"><em>menu4</em></a></li>
        <li><a href="#"><em>menu5</em></a></li>
        <li><a href="#"><em>menu6</em></a></li>
    </ul>
</div>

<div id="contents">
    <div id="section1"><h2>우아한 <strong>성공은</strong> 없다.</h2></div>
    <div id="section2"><h2><strong>기회는</strong> 바로 옆에 있다.</h2></div>
    <div id="section3"><h2>현실을 <strong>외면하지 말라.</strong></h2></div>
    <div id="section4"><h2>공부는 우리 삶의 <strong>우선적 요소다.</strong></h2></div>
    <div id="section5"><h2><strong>기회가</strong> 없으면 만들면 된다.</h2></div>
    <div id="section6"><h2>모든 일은 <strong>스스로 해결하라.</strong></h2></div>
</div>




<style>
    /* reset */
    * {margin:0; padding:0; font-family: 'Lato';}
    li {list-style: none;}
    a {text-decoration: none;}

    /* nav */
    #nav {position: fixed; left: 0; top: 0px; width: 100%; height: 61px; z-index: 1000; background-color: rgba(255,255,255,0.3); transition: all 0.3s ease;}
    #nav.on {position: fixed; top: -61px;}
    #nav h1 {float: left; color: #fff; font-size: 40px; padding: 5px 5px 5px 15px; font-family: 'Abel' }

    /* dot */
    #dot {position: fixed; right: 20px; top:50%; transform: translatey(-50%);}
    #dot li {
        position: relative;
        width: 20px; height: 20px; border-radius:50%; 
        box-shadow: 0 0 0 2px rgba(255,255,255,0);
        margin: 8px;
        transition: box-shadow 0.3s ease;
    }
    #dot li a { 
        background-color: rgba(255,255,255,0.7);
        width: 100%; height: 100%;
        position: absolute; top:0; left: 0;
        border-radius: 50%;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }
    #dot li.active {box-shadow: 0 0 0 2px rgba(255,255,255,1);}
    #dot li.active a {transform: scale(0.4);}
    #dot li a em {display: none;}        

    /* contents */
    #contents {text-align: center; color: #fff;}
    #contents > div {height: 100vh; line-height: 100vh;}
    #contents > div h2 {font-size: 70px; font-weight: 200; text-transform: uppercase;}
    #contents > div h2 strong {font-weight: 700; font-style: italic;}

    /* section */
    #section3 {background:radial-gradient(ellipse farthest-corner at center top, #A3A1FF, #3A3897);}
    #section2 {background:radial-gradient(ellipse farthest-corner at center bottom, #3AA17E, #00537E);}
    #section1 {background:radial-gradient(ellipse farthest-corner at center top, #29ABE2, #4F00BC);}
    #section4 {background:radial-gradient(ellipse farthest-corner at center top, #FF5300, #45145A);}
    #section5 {background:radial-gradient(ellipse farthest-corner at center bottom, #852D91, #312A6C);}
    #section6 {background:radial-gradient(ellipse farthest-corner at center top, #FBB03B, #D4145A);}
</style>




<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script>
    var dot = $("#dot > ul > li");
    var cont = $("#contents > div");

    dot.click(function(e){
        e.preventDefault();
        var target = $(this);
        var index = target.index();
        //alert(index);
        var section = cont.eq(index);
        var offset = section.offset().top;
        $("html,body").animate({ scrollTop:offset },600,"easeInBounce");
    });

    $(window).scroll(function(){
        var wScroll = $(this).scrollTop();

        if(wScroll >= cont.eq(0).offset().top){
            dot.removeClass("active");
            dot.eq(0).addClass("active");
        }
        if(wScroll >= cont.eq(1).offset().top){
            dot.removeClass("active");
            dot.eq(1).addClass("active");
        }
        if(wScroll >= cont.eq(2).offset().top){
            dot.removeClass("active");
            dot.eq(2).addClass("active");
        }
        if(wScroll >= cont.eq(3).offset().top){
            dot.removeClass("active");
            dot.eq(3).addClass("active");
        }
        if(wScroll >= cont.eq(4).offset().top){
            dot.removeClass("active");
            dot.eq(4).addClass("active");
        }
        if(wScroll >= cont.eq(5).offset().top){
            dot.removeClass("active");
            dot.eq(5).addClass("active");
        }
    });
</script>




09. 패럴럭스 배우기 - Dot Menu2

메뉴 대신에 사용할 수 있는 닷 메뉴 패럴러즈 튜토리얼입니다.

완성
광고

공유하기

  • 네이버 블러그 공유하기
  • 페이스북 공유하기
  • 트위터 공유하기
  • 트위터 공유하기
  • 트위터 공유하기
태그보기

전체메뉴

질문하기
댓글
댓글쓰기 폼