Current Directory: /home/u930863517/domains/limraevents.com/public_html/js
Viewing File: /home/u930863517/domains/limraevents.com/public_html/js/index.js
$(document).ready(function () {
// preloader
setTimeout(function () {
$('body').addClass('loaded');
$('.prevideo').addClass('loaded');
}, 2000);
// hero slider
$('.hero-slider').slick({
dots: false,
infinite: true,
speed: 3000,
fade: true,
cssEase: 'linear',
autoplay: true,
prevArrow: $('#hero-left'),
nextArrow: $('#hero-right')
});
// client clider
$('.client-slider').slick({
dots: false,
infinite: true,
speed: 300,
slidesToShow: 6,
slidesToScroll: 1,
nextArrow: false,
prevArrow: false,
autoplay: true,
autoplaySpeed: 1000,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 5,
slidesToScroll: 1,
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 3,
slidesToScroll: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});
// counters
var section = document.querySelector('#counters');
var hasEntered = false;
window.addEventListener('scroll', (e) => {
var shouldAnimate = (window.scrollY + window.innerHeight) >= section.offsetTop;
if (shouldAnimate && !hasEntered) {
hasEntered = true;
$('.number').each(function () {
$(this).prop('Counter', 0).animate({
Counter: $(this).text()
}, {
duration: 5000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
}
});
// gallery
$('.gallery .gallery-wrapper .image').magnificPopup({
type: 'image',
gallery: { enabled: true }
});
// testimonials slider
$('.testimonial-slider').slick({
dots: false,
infinite: true,
speed: 300,
slidesToShow: 3,
slidesToScroll: 1,
nextArrow: $(".slider-arrows #right-slide"),
prevArrow: $(".slider-arrows #left-slide"),
autoplay: true,
autoplaySpeed: 1000,
responsive: [
{
breakpoint: 992,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
})