Added new header system, waiting for texts to be added to .header-text
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user