@keyframes fadeIn
{
0% {opacity: 0;}
100% {opacity: 1;}
}
@-webkit-keyframes fadeIn
{
0% {opacity: 0;}
100% {opacity: 1;}
}
.items.animated .fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
-webkit-animation-duration: .8s;
animation-duration: .8s;
}
.items.animated .fadeIn.fade1 {
-webkit-animation-delay: .2s;
animation-delay: .2s;
}
.items.animated .fadeIn.fade2 {
-webkit-animation-delay: .4s;
animation-delay: .4s;
}
.items.animated .fadeIn.fade3 {
-webkit-animation-delay: .6s;
animation-delay: .6s;
}
$(function() {
if ($('.menu').length > 0) {
$('.menu').css('z-index', 9);
var menu = $('.menu').offset().top;
$(window).scroll(function() {
if ($(this).scrollTop() > menu) {
if ($('.menu').css('position') != 'fixed') {
$('.menu').css({
'position': 'fixed',
'top': '0px'
});
}
} else {
if ($('.menu').css('position') != 'static') {
$('.menu').css({
'position': 'static'
});
}
}
});
}
});