labo 3

teste

by olimann

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css">
<script src="http://tympanus.net/Development/FullscreenOverlayStyles/js/modernizr.custom.js"></script>
<script src="http://tympanus.net/Development/FullscreenOverlayStyles/js/classie.js"></script>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.css">
<!-- MENU TOP -->
<header class="fixed">
    <div class="logo left"><i class="fi fi-heart"></i></div>      
        
        <div class="nav-cont-slide right">        
            <button class="nav-btn right">
                <span>   
                    <i class="fi fi-list"></i>
                    <i class="fi fi-x"></i>
                </span>      
            </button>

            <nav class="nav-absolute">
                <ul>
                  <li><a>portfolio</a></li>
                  <li><a>A propos</a></li>
                  <li><a>contact</a></li>   
                </ul>    
            </nav>     
        </div>
    
</header>

<section class="home container-fluid full-height">
    <div class="container-fluid full-height">
        <div class="row table">
            <div class="large-12 cell">
                <h2>hello everybody!</h2>
                <p>Denique Antiochensis ordinis vertices sub uno</p>
                <a class="arrow-down" href="#content"><i class="fi fi-arrow-down"></i></a>                    
            </div>   
         </div>
     </div>
</section>

<div id="works" class="container-fluid">
    
    <div id="content" class="container-fluid">
        <div class="row">
            <div class="large-12">
                <h1>hello everybody!</h1>
                <p>Denique Antiochensis ordinis vertices sub uno elogio iussit occidi ideo efferatus.</p>
                
                <ul class="clearing-thumbs...

CSS

@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
@import url(http://fonts.googleapis.com/css?family=Vollkorn:400,700);

body {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    color: #26272d;
    text-align: center;    
}
html, body {
    height: 100%;
    width: 100%;
}
h1, h2 { line-height: normal; margin: 0; }
.row { max-width: 1300px; }
a:focus { outline:0; } 

/* MENU TOP FIXED*/

header.fixed {
    width:100%;
    padding: 20px;
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;

}

.nav-cont-slide,
.nav-absolute,
.nav-btn span,
.scroll-top{    
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;   
}

.logo {
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: orange;
    color: #fff;
    text-align: center;
    font-size: 2em;

}

/*MENU SLIDE*/

.nav-cont-slide {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #222;
    overflow: hidden;
}

.nav-absolute{  
    height: 50px;
    width: 350px;
    position: absolute;
    top: 0;
    left: 50px;
    -webkit-transition-delay: .2s; /* Safari */
    transition-delay: .2s;
}

nav ul {
    margin: 0;
    padding: 0;
    font-size:0; /*bug espace*/
    width: auto;
      
}

nav > ul > li {
    display: inline-block;


}
nav li a {
    display: block;
    color: #999;
    height: 50px;    
    line-height: 50px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform:uppercase;
}
nav li a:hover{
    color:orange;
}

/*  BONTON MENU OPEN */
.nav-btn,
.nav-btn:focus{
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    font-size: 2em;
    z-index: 999;
    background-color: #222;
    color: #fff;
    outline: none;

}

.nav-btn...

JavaScript

// jQuery(document).ready(function($){
//	function fullscreen(){
//		jQuery('section').css({
//            width: jQuery(window).width(),
//            height: jQuery(window).height()
//        });
//	}
    
//	fullscreen();
    
//  jQuery(window).resize(function() {
//       fullscreen();         
//    });
//});

//////////////////// Scroll to down //

$('.arrow-down').click(function(e){
  e.preventDefault();
  $('html, body').animate({scrollTop:($("#content").offset().top - 20)}, 800, 'swing');
});

////////////////////open menu //

$(document).ready(function(){
		$(".nav-btn").click(function(){
		$(".nav-cont-slide").toggleClass("open");
	})
});


////////////////////Scroll to top //

var	scrollTop = $('.scroll-top');

$(document).on( 'scroll', function(){
    if ($(window).scrollTop() > 1000) {
      scrollTop.addClass('show');
    } else {
      scrollTop.removeClass('show');
 
    }
  });

  scrollTop.on('click', scrollToTop);

function scrollToTop() {
    verticalOffset = typeof(verticalOffset) != 'undefined' ? verticalOffset : 0;
    element = $('body');
    offset = element.offset();
    offsetTop = offset.top;
    $('html, body').animate({scrollTop: offsetTop}, 500, 'linear');
}