Using jQuery, you could do something like:
if (swiper.activeIndex===0) {
$('.left-slide').hide()
$('.right-slide').show()
} else if (swiper.activeIndex === swiper.slides.length-1) {
$('.left-slide').show()
$('.right-slide').hide()
}
First condition is the first slide
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…