kthornbloom / Smoothproducts

A simple, lightweight and responsive product image viewer using jQuery
kthornbloom.com/smoothproducts
185 stars 89 forks source link

Make light box infinite loop #26

Open mithz07 opened 8 years ago

mithz07 commented 8 years ago

Is there a way to make full zoom light box to work in a loop without stop at the last image?

kthornbloom commented 8 years ago

There isn't an easy option for this, no. However it wouldn't be that hard if you are familiar with jQuery. Check out lines 169-170 and 197-198. That's where the navigation is stopped if you've reached the ends. You would just need to set the 'nextEq' variable accordingly, and do the functions that occur after that if statement.

On Tue, Jun 28, 2016 at 6:40 AM, mithz07 notifications@github.com wrote:

Is there a way to make full zoom light box to work in a loop without stop at the last image?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kthornbloom/Smoothproducts/issues/26, or mute the thread https://github.com/notifications/unsubscribe/ADKzq4tgsJTjaXQPLt79DGEfBHz4z5V2ks5qQPoZgaJpZM4I_965 .

mithz07 commented 8 years ago

okay, thanks for the feedback. I'll try