WhiteFoxCreations Posted August 25, 2020 Share Posted August 25, 2020 Hi all! I currently have a testimonial carousel on 7.1 that I created with blog information. How can I make this auto scroll? I've tried a few codes but it's not working and I'm definitely not code-savvy. Here' my site: the carousel is on the bottom of the home page. https://www.whitefoxcreations.com Separate question: I want to make a carousel with a block of color with words inside of it. How do I go about this? It seems like the blog route way may be the hardest... THANK YOU! Link to comment
tuanphan Posted August 28, 2020 Share Posted August 28, 2020 Add to Home > Settings > Advanced > Code Injection > Footer <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("div#page-section-5f219f13509f742614db1e67"); 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> 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
WhiteFoxCreations Posted September 14, 2020 Author Share Posted September 14, 2020 On 8/28/2020 at 1:02 AM, tuanphan said: Add to Home > Settings > Advanced > Code Injection > Footer <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("div#page-section-5f219f13509f742614db1e67"); 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> Link to comment
WhiteFoxCreations Posted September 14, 2020 Author Share Posted September 14, 2020 Thank you SO MUCH!! It worked! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.