/* ===============================================
OWL CAROUSEL SLIDER
=============================================== */
jQuery('document').ready(function(){
var owl = jQuery('.slider .owl-carousel');
owl.owlCarousel({
margin:20,
nav: false,
autoplay : true,
lazyLoad: true,
autoplayTimeout: 3000,
loop: false,
dots:true,
navText : ['',' '],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
1000: {
items: 1
}
},
autoplayHoverPause : true,
mouseDrag: true
});
});
/* ===============================================
SCROLL TOP
============================================= */
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 100) {
jQuery('.scroll-up').fadeIn();
} else {
jQuery('.scroll-up').fadeOut();
}
});
jQuery('a[href="#tobottom"]').click(function () {
jQuery('html, body').animate({scrollTop: 0}, 'slow');
return false;
});
/*===============================================
PRELOADER
=============================================== */
jQuery('document').ready(function($){
setTimeout(function () {
jQuery(".cssloader").fadeOut("slow");
},1000);
});
/* ===============================================
STICKY-HEADER
============================================= */
jQuery(window).scroll(function () {
var sticky = jQuery('.sticky-header'),
scroll = jQuery(window).scrollTop();
if (scroll >= 100) sticky.addClass('fixed-header');
else sticky.removeClass('fixed-header');
});