jQuery( document ).ready(function( $ ) {
"use strict";
// Page loading animation
$("#preloader").animate({
'opacity': '0'
}, 600, function(){
setTimeout(function(){
$("#preloader").css("visibility", "hidden").fadeOut();
}, 300);
});
$(window).scroll(function() {
var scroll = $(window).scrollTop();
var box = $('.header-text').height();
var header = $('header').height();
if (scroll >= box - header) {
$("header").addClass("background-header");
} else {
$("header").removeClass("background-header");
}
});
if ($('.owl-clients').length) {
$('.owl-clients').owlCarousel({
loop: true,
nav: false,
dots: true,
items: 1,
margin: 30,
autoplay: false,
smartSpeed: 700,
autoplayTimeout: 6000,
responsive: {
0: {
items: 1,
margin: 0
},
460: {
items: 1,
margin: 0
},
576: {
items: 3,
margin: 20
},
992: {
items: 5,
margin: 30
}
}
});
}
if ($('.owl-banner').length) {
$('.owl-banner').owlCarousel({
loop: true,
nav: true,
dots: true,
navText: [
"",
""
],
items: 3,
margin: 0,
stagePadding: 0,
autoplay: true,
smartSpeed: 500,
autoplayTimeout: 4000,
autoplayHoverPause: true,
responsive: {
0: {
items: 1,
margin: 0
},
460: {
items: 1,
margin: 0
},
576: {
items: 1,
margin: 0
},
992: {
items: 3,
margin: 0
}
}
});
}
});