cubiq/SwipeView

Extend viewport to show parts of the other masterpages

nwittstruck opened this issue · 7 comments

Hi,

I would like to be able to extend the viewport, so that you can see a bit of the left masterpage and a bit of the right masterpage. Is this somehow possible?

Cheers

I believe this can be done with just CSS, never tried myself though. I'll give it a try

Thanks. I've tried changing the width of the pages, but that broke the functionality.

I've been trying to find out how to do this too! Have you figured it out yet?

No, not yet. Didn't have time yet.

Hi Matteo, Did you get a chance to try this out?

Guys, its damn easy to achieve this with CSS. First apply the following css to the ".swiper" container.

/* !important is required as the SwipeView JS sets this class to hide any overflowing content. */
.swiper {overflow: visible !important}

Also make sure the outer container that holds the Swipeview gallery has enough width set to show the extra content. Example below:

#wrap { width: 280px; overflow: hidden; }
#wrap .swiper {width: 160px; overflow: visible !important}

From the above example, you get to see the active Slide of 160px and the left and right side you get to see a portion of the other two slides.

Hope this helps.

I'm pretty sure I tried this, but it didn't seem to work back then. It works now! Thx!