Naomi-lifelab Posted April 9, 2022 Share Posted April 9, 2022 Site URL: https://lifelab.world/workshop-location-buchen Hello Squarespace Experts! I have recently encountered this cool code here by @tuanphan. It works perfectly but the only issue is the loop takes around 20-30seconds before it goes back to the start. Is there any fix ton increase the speed of the loop? In addition, can I also add additional pages on the var container = Y.one("#spaces-photo-preview-2") by adding a comma? This is the code: I just need a loop speed fix <!-- Summary Block Autoplay --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { try { var container = Y.one("#spaces-photo-preview-2"); /*change this to the slug of your page*/ var gallery = Y.Squarespace.GalleryManager.getGalleryByContainer(container); gallery.setAttrs({ "autoplay":true, "autoplayOptions": { "timeout":3000, /*make this higher to decrease speed, lower to increase it*/ "randomize": true } }); } catch (e) { console.error("Could not configure Gallery autoplay.", e); } }); </script> Thank you so much in advance! 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