homepage revamp
This commit is contained in:
@ -4,6 +4,26 @@
|
||||
// Preloader js
|
||||
$(window).on('load', function () {
|
||||
$('.preloader').fadeOut(100);
|
||||
if ($('header').offset().top > 10) {
|
||||
$('.top-header').addClass('hide');
|
||||
$('.navigation').addClass('nav-bg');
|
||||
$('.navigation').css('margin-top','-'+height+'px');
|
||||
} else {
|
||||
$('.top-header').removeClass('hide');
|
||||
if (!$('#top-banner').length) {
|
||||
$('.navigation').removeClass('nav-bg');
|
||||
}
|
||||
$('.navigation').css('margin-top','-'+0+'px');
|
||||
}
|
||||
if ($('#top-banner').length) {
|
||||
$('.navigation').addClass('nav-bg');
|
||||
$('.hero-section').addClass('hs-banner');
|
||||
$('.page-title-section').addClass('pts-banner');
|
||||
} else {
|
||||
$('.navigation').removeClass('nav-bg');
|
||||
$('.hero-section').removeClass('hs-banner');
|
||||
$('.page-title-section').removeClass('pts-banner');
|
||||
}
|
||||
});
|
||||
|
||||
// Sticky Menu
|
||||
@ -15,7 +35,9 @@
|
||||
$('.navigation').css('margin-top','-'+height+'px');
|
||||
} else {
|
||||
$('.top-header').removeClass('hide');
|
||||
$('.navigation').removeClass('nav-bg');
|
||||
if ( !$('#top-banner').length) {
|
||||
$('.navigation').removeClass('nav-bg');
|
||||
}
|
||||
$('.navigation').css('margin-top','-'+0+'px');
|
||||
}
|
||||
});
|
||||
@ -32,7 +54,7 @@
|
||||
//Hero Slider
|
||||
$('.hero-slider').slick({
|
||||
autoplay: true,
|
||||
autoplaySpeed: 7500,
|
||||
autoplaySpeed: 5000,
|
||||
pauseOnFocus: false,
|
||||
pauseOnHover: false,
|
||||
infinite: true,
|
||||
|
Reference in New Issue
Block a user