inflearn logo
강의

Course

Instructor

foxball's honest review, Create a variety of image effects quickly and easily! course

foxball

Reviews 33

Average rating 4.8

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

1

ggangcoding162118

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. :)

0

ggangcoding162118

11 lectures

159 enrolled

Create a variety of image effects quickly and easily!
5(11 reviews)