toolman Posted January 8, 2015 Share Posted January 8, 2015 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! Quote Link to comment https://forums.phpfreaks.com/topic/293745-loop-jquery-gallery/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.