NIM_E31220577/home/js/main.js

36 lines
733 B
JavaScript

(function ($) {
"use strict";
// Initiate the wowjs
new WOW().init();
// Sticky Navbar
$(window).scroll(function () {
if ($(this).scrollTop() > 300) {
$(".sticky-top").addClass("shadow-sm").css("top", "0px");
} else {
$(".sticky-top").removeClass("shadow-sm").css("top", "-100px");
}
});
// Facts counter
$('[data-toggle="counter-up"]').counterUp({
delay: 10,
time: 2000,
});
// Testimonials carousel
$(".testimonial-carousel").owlCarousel({
autoplay: true,
smartSpeed: 1000,
items: 1,
dots: false,
loop: true,
nav: true,
navText: [
'<i class="bi bi-chevron-left"></i>',
'<i class="bi bi-chevron-right"></i>',
],
});
})(jQuery);