Image disappears in carousel mode (jQuery Swiper p

2019-09-03 10:33发布

问题:

I am using iDangero.us Swiper plugin for homepage slider, and I encountered a peculiar problem in all browsers. I have 4 slides (each is a div with a background image and some text and images inside), and all looks fine until I swipe (or click the Next button) to go from the last slide to come to the first one. The new slide appears totally white, and it only takes a slight dragging to make it appear properly.

Interestingly, this does not happen if I scroll backwards (drag the slider to the left or click the Back button).

The demo is here: https://dl.dropboxusercontent.com/u/13308449/design-boost/index.html

What might cause this behaviour and how can I fix it?

回答1:

The problem was with the margin-right: 10px being applied to visible slides, so the problem was not in the plugin, but my CSS. Apologies.