Added new header system, waiting for texts to be added to .header-text

This commit is contained in:
2017-07-11 12:18:06 +02:00
parent 3269d2b65c
commit 050d446960
9 changed files with 176 additions and 41 deletions

View File

@ -20,6 +20,24 @@
$("body").toggleClass("nav-opened nav-closed");
});
var object = $('.homepage-top-header');
var toggleHeight = 1442;
if (object !== null) {
$(document).scroll(function(e){
if (window.scrollY >= (toggleHeight - 100)) {
object.show(300);
} else if (window.scrollY < toggleHeight) {
object.hide(300);
}
});
}
var animateobject = $('.top-header-animate');
if (animateobject !== null) {
animateobject.show(200);
}
});
// Arctic Scroll by Paul Adam Davis