SaraB Posted April 16, 2020 Share Posted April 16, 2020 Hello - I used the following code found on another thread to auto-scroll my testimonials (I used a carousel summary block). It works great. However, I'm hoping someone can help me figure out how to slow it down. It's currently scrolling every 3 seconds. FYI - I'm new to using code. 🙂 Thanks a ton! <script> Y.on('domready', function () { var galleries = Y.Squarespace.GalleryManager.getGalleries(); for( i = 0; i<galleries.length; i++){ galleries[i].setAttrs({"autoplay":true}) } }); </script> Beyondspace 1 Link to comment
Guest Posted April 24, 2020 Share Posted April 24, 2020 ghostplugins.com has a great plugin -- https://www.ghostplugins.com/products/super-slideshow-gallery-autoplay-version Here is a quick review -- Link to comment
LostBoy Posted September 27, 2020 Share Posted September 27, 2020 Can you do auto scrolling for mobile only? Link to comment
LostBoy Posted September 27, 2020 Share Posted September 27, 2020 (edited) oop, figured it out <script> if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { Y.on('domready', function () { var galleries = Y.Squarespace.GalleryManager.getGalleries(); for( i = 0; i<galleries.length; i++){ galleries[i].setAttrs({"autoplay":true}) } }); } </script> Edited September 27, 2020 by LostBoy Link to comment
Kcmbell Posted November 11, 2021 Share Posted November 11, 2021 <!-- Summary Block Autoplay --> <script> window.onload = function() { var nextArrow = document.querySelector(".summary-carousel-pager-next"); function clickNext() { nextArrow.click(); } setInterval(clickNext, 10000); }; </script> Link to comment
Beyondspace Posted November 12, 2021 Share Posted November 12, 2021 On 4/16/2020 at 8:14 PM, SaraB said: Hello - I used the following code found on another thread to auto-scroll my testimonials (I used a carousel summary block). It works great. However, I'm hoping someone can help me figure out how to slow it down. It's currently scrolling every 3 seconds. FYI - I'm new to using code. 🙂 Thanks a ton! <script> Y.on('domready', function () { var galleries = Y.Squarespace.GalleryManager.getGalleries(); for( i = 0; i<galleries.length; i++){ galleries[i].setAttrs({"autoplay":true}) } }); </script> try <script> Y.on('domready', function () { var galleries = Y.Squarespace.GalleryManager.getGalleries(); for( i = 0; i < galleries.length; i++){ galleries[i].setAttrs({ "autoplay": true, "autoplayOptions": { "timeout":10000, } }) } }); </script> Change the timeout value to see if it for your template Rebel 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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