A user wants to implement infinite scrolling for their product photo gallery, where images loop continuously back to the first image after reaching the end.
Technical Context:
The gallery uses Flickity (a JavaScript carousel library)
The user cannot locate the relevant code to modify this behavior
I would like my product photo gallery to be infinite, meaning that the scroll never stops and that you return to the first image as soon as you have finished viewing everything.
I know it’s linked to Flickity but I can’t find it in the code. Here’s my url: https://yokaiclothing.com
I see what you mean; you’d like your product gallery to loop infinitely so that it restarts from the first image seamlessly. That’s definitely possible with Flickity or a custom JS tweak.
Do you happen to feel comfortable editing the theme code yourself, or would you prefer that I step in and handle it directly for you? That way, I can make sure it works smoothly without affecting your store layout.
To make it infinite, find where the Flickity carousel is initialized (often in a JS file like product-media-gallery.js, theme.js, or inside assets/).
Find code like below: