(function ($) {
"use strict";
$(document).ready(function () {
/*---------------------------------------------------
Slider Carousel
----------------------------------------------------*/
$('.slider-carousel').owlCarousel({
loop: true,
navText: ['', ''],
nav: true,
autoplay: true,
autoplayTimeout: 5000,
animateOut: 'fadeOut',
animateIn: 'fadeIn',
smartSpeed: 450,
responsive: {
0: {
items: 1
},
768: {
items: 1
},
991: {
items: 1
},
1200: {
items: 1
},
1920: {
items: 1
}
}
});
/*---------------------------------------------------
Testimonial Carousel
----------------------------------------------------*/
$('.testimonial-carousel').owlCarousel({
loop: true,
margin: 20,
responsive: {
0: {
items: 1
},
768: {
items: 2
},
991: {
items: 2
},
1200: {
items: 3
},
1920: {
items: 3
}
}
});
/*---------------------------------------------------
Magnific PopUp
----------------------------------------------------*/
$('.popup-video').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false,
disableOn: 300
});
});
/*---------------------------------------------------
Smooth Scroll
----------------------------------------------------*/
$(document).on('click', 'nav.navbar.bootsnav ul.nav li a', function (event) {
event.preventDefault();
$('html, body').animate({
scrollTop: $($.attr(this, 'href')).offset().top
}, 500);
});
/*---------------------------------------------------
Site Preloader
----------------------------------------------------*/
$(window).on('load', function () {
$('.site-preloader').fadeOut(500);
});
}(jQuery));