CSS-Tricks / MovingBoxes

Simple horizontal slider which grows up the current box when it's in focus (image, title & text) and back down when it's not in focus.
http://css-tricks.github.io/MovingBoxes/
GNU Lesser General Public License v3.0
280 stars 147 forks source link

Slide disappearing in continuous slider #125

Open d-u-a-l opened 10 years ago

d-u-a-l commented 10 years ago

If you set wrap:true in options, you get continuous slider. But when displaying first (last) slide and sliding backward (forward), slide to the right (left) of active disappears right before animation. I see that you add cloned slides, but it seems that they don't work as they should. In my slider I have 3 slides, and before sliding (for example to left, when active is the first one) I get 3 slides at the right side and one at the left. After i press left arrow, all those 3 (which were at the right side) slides immediately are being moved to the left - and we are left with blank space at the right side during slide animation

d-u-a-l commented 10 years ago

If you need an example, I've already posted temporary address in previous issue

Mottie commented 10 years ago

Hi @d-u-a-l!

This problem was discussed previously in issue #45 & #116. As mentioned before, adding more than one clone slide at the beginning of the slider makes things really messy. I haven't had time to work on a better solution.