thebird / Swipe

Swipe is the most accurate touch slider.
MIT License
6.79k stars 1.69k forks source link

show a piece of prev / next div #321

Open rollsappletree opened 11 years ago

rollsappletree commented 11 years ago

Hi guys, i'm using swipe and it is gourgeous!

I'd like to achieve a facebook-app like image slider, having the right border of the prev image and the left border of the next images partially visible.

Do you know how to achieve that?

here a jsfiddle of the swipe demo (for sandboxing) http://jsfiddle.net/rollsappletree/4zzGt/1/

Thanks in advance, C

josefrichter commented 11 years ago

I am trying the very same thing. The code is here http://jsbin.com/aletev/1

Almost there, just ran into one issue: Sometimes the next slide is covered with the last slide, so on swipe it shows up from underneath it. You will see it when you open the code e.g. on iphone and watch the behaviour of the next slide(s) peeking from the right. I think it is caused by some JS inserting of the slides, but my JS skills are too low to fix it.

Can anyone help?

uxDesignStudio commented 11 years ago

Same issue for me too... Divs overlapping. In my case the "swipe-wrap" has a percentage width, an is nested in a fluid width div.