hayleysb13 Posted August 22, 2022 Share Posted August 22, 2022 Site URL: https://www.theproductiveco.com/ Hello! I am trying to make the testimonials for our website (created using 7.1 automated "people" section) auto-scroll. Could someone provide me with a Custom CSS for this? Link to comment
Beyondspace Posted August 22, 2022 Share Posted August 22, 2022 1 hour ago, hayleysb13 said: Site URL: https://www.theproductiveco.com/ Hello! I am trying to make the testimonials for our website (created using 7.1 automated "people" section) auto-scroll. Could someone provide me with a Custom CSS for this? I think it can be achieved by using some javascript code to set interval the clicking on next button <script> (function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } })(() => { if ( window.location == window.parent.location ) { const reelControls = document.querySelectorAll('section[data-section-id="630305ced17aa33b3d1a4e54"] .user-items-list-carousel__arrow-button--right'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </script> Hope it can help tuanphan and hayleysb13 2 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword HighlighterIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
hayleysb13 Posted August 24, 2022 Author Share Posted August 24, 2022 On 8/22/2022 at 11:30 AM, bangank36 said: I think it can be achieved by using some javascript code to set interval the clicking on next button <script> (function docReady(fn) { // see if DOM is already available if (document.readyState === "complete" || document.readyState === "interactive") { // call on next available tick setTimeout(fn, 1); } else { document.addEventListener("DOMContentLoaded", fn); } })(() => { if ( window.location == window.parent.location ) { const reelControls = document.querySelectorAll('section[data-section-id="630305ced17aa33b3d1a4e54"] .user-items-list-carousel__arrow-button--right'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </script> Hope it can help Thank you! This worked great! Beyondspace 1 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