Jump to content

Loop jQuery gallery


toolman

Recommended Posts

Hi,

 

I am using the following script which displays images in a gallery.

https://feimosi.github.io/baguetteBox.js/

 

However, when it gets to the last image, it doesn't scroll back to the beginning and also stating at teh first image, doesn't let you scroll to the last image.

 

Is there a way I can make the gallery loop in both directions? I'm guessing I can add a jQuery option?

 

<script>
window.onload = function() {
    if(typeof oldIE === 'undefined' && Object.keys)
        hljs.initHighlighting();
    baguetteBox.run('.baguetteBoxOne');
    baguetteBox.run('.baguetteBoxTwo');
    baguetteBox.run('.baguetteBoxThree', {
        animation: 'fadeIn'
    });
   

};
    </script>

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/293745-loop-jquery-gallery/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.