Setting Testimonial
You can set the testimonial script in script.js file. Here is the code for it
/* testimonial slider script on Home 1 & Home 5*/
const testi_slider = new Swiper('.testi_slider', {
speed: 800,
loop: true,
preventInteractionOnTransition: true,
autoplay: {
delay: 6000,
disableOnInteraction: false
},
effect: 'fade',
fadeEffect: {
crossFade: true
},
// If we need pagination
navigation: {
nextEl: '.prev_testi',
prevEl: '.next_testi',
},
});
/* testimonial 2 slider script on Home 3 */
const testi2_slider = new Swiper('.testi2_slider', {
speed: 800,
loop: true,
slidesPerView: 1,
centeredSlides: true,
autoplay: {
delay: 6000,
disableOnInteraction: false
},
breakpoints: {
640: {
slidesPerView: 1,
},
1024: {
slidesPerView: 3,
}
},
});
This testimonial is based on swiper plugin. You can see this page for more info for more customization this testimonial.