Inflearn brand logo image

Reviews 32

Average rating 4.8

Completed 63% of course

Teacher, please tell me how to apply it in swiper.js. I'm struggling for a while. ㅠㅠ

ggangcoding162118님의 프로필 이미지
ggangcoding162118
Instructor

Hello, thank you for your valuable review. :) It's the same when applied to Swiper js~! const swiper = new Swiper('.swiper-container', { effect: 'fade', speed: 0, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, on: { slideChange: function () { var thisSlide = $('.swiper-container').find('.swiper-slide').eq(this.activeIndex); ggangImgEffect(thisSlide, this.activeIndex); } } }); You can use the slideChange callback function that is called when the slide changes like this. :)

ggangcoding162118

·

11 lectures

·

156 students

ggangcoding162118

·

11 lectures

·

156 students