Insider Posted September 2, 2021 Share Posted September 2, 2021 Hi all, I'd like to know if it's possible to have a gallery carousel run in an infinite loop so that after the last image, it continues scrolling in the right direction starting at the first image again. Ideally this would apply to all gallery carousels but if too difficult, just on blog posts would be great also. Can this be solved with coding? https://projectsinsider.com/project/3-rubida-court-endeavour-hills lifeisgood Cheers. Link to comment
tuanphan Posted September 5, 2021 Share Posted September 5, 2021 Try adding to Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ setInterval(function(){ $('a.next[aria-label="Next Slide"]').click() },2000); }) </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Insider Posted September 9, 2021 Author Share Posted September 9, 2021 (edited) On 9/5/2021 at 11:53 AM, tuanphan said: Try adding to Settings > Advanced > Code Injection > Footer <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ setInterval(function(){ $('a.next[aria-label="Next Slide"]').click() },2000); }) </script> After the last slide, the next click still goes back to the first image going the left direction. I was hoping for the right direction. Thank you for trying @tuanphan! Edited September 9, 2021 by Insider Link to comment
j2a1950 Posted September 21, 2023 Share Posted September 21, 2023 I'm having this same issue. Has anyone come up with a solution that works? Link to comment
moonlitdesign Posted April 8 Share Posted April 8 also looking for this! the auto loop is jumpy when it goes back to the beginning by scrolling left. it would be great to have it auto play through back to the beginning by just scrolling to the right still! Link to comment
tuanphan Posted April 11 Share Posted April 11 You can consider using List Carousel, then I will give new code. Here is an example https://tuanphan.squarespace.com/list-1-1?noredirect pass: abc Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment