/*----------------------------------------------------------------- Template Name: Remons - Booking Rental HTML Template< Author: Pixydrops Author URI: https://themeforest.net/user/pixydrops/portfolio Version: 1.0.0 Description: Remons - Booking Rental HTML Template< ------------------------------------------------------------------- Js TABLE OF CONTENTS ------------------------------------------------------------------- 01. header 02. animated text with swiper slider 03. magnificPopup 04. counter up 05. wow animation 06. nice select 07. swiper slider 08. search popup 09. preloader 10. Gsap ------------------------------------------------------------------*/ (function($) { "use strict"; $(document).ready(function() { //>> Mobile Menu Js Start <'], }); //>> Sidebar Toggle Js Start <> Body Overlay Js Start <> Sticky Header Js Start < 250) { $("#header-sticky").addClass("sticky"); } else { $("#header-sticky").removeClass("sticky"); } }); //>> Hero Slider 1 Start <> Hero Slider 2 Start <> Hero Slider End <> Hero Slider 1 Start <> Video Popup Start <> Counterup Start <> Wow Animation Start <> Nice Select Start <> Car Rentals Slider Start < 0) { const carRentalsSlider = new Swiper(".car-rentals-slider", { spaceBetween: 30, speed: 1000, loop: true, navigation: { nextEl: ".array-prev", prevEl: ".array-next", }, breakpoints: { 1599: { slidesPerView: 4, }, 1199: { slidesPerView: 3, }, 991: { slidesPerView: 2, }, 767: { slidesPerView: 2, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }); } if($('.car-rentals-slider-2').length > 0) { const carRentalsSlider2 = new Swiper(".car-rentals-slider-2", { spaceBetween: 30, speed: 1000, loop: true, navigation: { nextEl: ".array-prev", prevEl: ".array-next", }, breakpoints: { 1199: { slidesPerView: 3, }, 991: { slidesPerView: 2, }, 767: { slidesPerView: 2, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }); } //>> Brand Rentals Slider Start < 0) { const brandSlider = new Swiper(".brand-slider", { spaceBetween: 30, speed: 2000, loop: true, autoplay: { delay: 2000, disableOnInteraction: false, }, navigation: { nextEl: ".array-prev-2", prevEl: ".array-next-2", }, breakpoints: { 1399: { slidesPerView: 6, }, 1199: { slidesPerView: 5, }, 991: { slidesPerView: 4, }, 767: { slidesPerView: 3, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }); } //>> Testimonial Slider Start < 0) { const testimonialSlider = new Swiper(".testimonial-slider", { spaceBetween: 30, speed: 2000, loop: true, autoplay: { delay: 2000, disableOnInteraction: false, }, pagination: { el: ".dot", clickable: true, }, breakpoints: { 1199: { slidesPerView: 3, }, 991: { slidesPerView: 2, }, 767: { slidesPerView: 2, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }); } if($('.testimonial-slider-2').length > 0) { const testimonialSlider2 = new Swiper(".testimonial-slider-2", { spaceBetween: 30, speed: 2000, loop: true, autoplay: { delay: 2000, disableOnInteraction: false, }, navigation: { nextEl: ".array-prev", prevEl: ".array-next", }, }); } if($('.testimonial-slider-3').length > 0) { const testimonialSlider3 = new Swiper(".testimonial-slider-3", { spaceBetween: 30, speed: 2000, loop: true, autoplay: { delay: 2000, disableOnInteraction: false, }, navigation: { nextEl: ".array-prev", prevEl: ".array-next", }, }); } //>> Car Slider Slider Start < 0) { const carSlider = new Swiper(".car-slider", { spaceBetween: 20, speed: 2000, loop: true, autoplay: { delay: 1000, disableOnInteraction: false, }, breakpoints: { 1399: { slidesPerView: 6, }, 1199: { slidesPerView: 5, }, 991: { slidesPerView: 4, }, 767: { slidesPerView: 3, }, 575: { slidesPerView: 1, }, 0: { slidesPerView: 1, }, }, }); } //>> Scroll Js Start < offset) { jQuery(".scroll-up").addClass("active-scroll"); } else { jQuery(".scroll-up").removeClass("active-scroll"); } }); $(".scroll-up").on("click", function(event) { event.preventDefault(); jQuery("html, body").animate({ scrollTop: 0, }, duration ); return false; }); //>> Search Popup Start <> Gsap Start < 0) { const car = gsap.timeline({ scrollTrigger: { trigger: ".car-sale-wrapper", scrub: 1, end: "+=1000", } }); car.to(".car-shape", {xPercent: 20, ease: "none",}); } if($('.cta-car-booking-items').length > 0) { const car = gsap.timeline({ scrollTrigger: { trigger: ".cta-car-booking-items", scrub: 1, end: "+=1000", } }); car.to(".car-image", {xPercent: -20, ease: "none",}); } $(function() { $("#datepicker, #datepicker2, #datepicker3, #datepicker4, #datepicker5, #datepicker6, #datepicker7, #datepicker8, #datepicker9, #datepicker10, #datepicker11").datepicker({ autoclose: true, todayHighlight: true }); }); }); // End Document Ready Function function loader() { $(window).on('load', function() { // Animate loader off screen $(".preloader").addClass('loaded'); $(".preloader").delay(600).fadeOut(); }); } loader(); })(jQuery); // End jQuery