SnoochMaster Posted November 9, 2022 Share Posted November 9, 2022 I'm having an issue with updating a site to 7.1 This is simple site it used to have an animated crawl of logos I could drop down in the bottom of this page and show the different companies they work with. I have tried Slideshow and images to get the same effect.. they are either too large or won't animate. The current version is using the arrows to manually scroll through (client doesn't like that) and it doesn't like mobile. I have attached some screen grabs and a url. https://www.pegasusok.com/ Just need these to slide or move across the screen - show 3 at a time and move through the 25 different logos I have, It could scale down on mobile or switch to just a single image.. but I don't believe we are doing totally different blocks in a mobile yet. Thoughts? seems like a simple thing, but not finding anyone posting CSS - one youtube with the college logos, but he is using HTML with it too and that seems like an odd hack. anyway would appreciate any thoughts. Thanks Marc Link to comment
tuanphan Posted November 12, 2022 Share Posted November 12, 2022 Hi, You want Reel Autoscroll + Resize it on mobile? To resize, add this to Design > Custom CSS > Then save & reload the site /* Reels on mobile */ @media screen and (max-width:767px) { .gallery-reel { height: 20vh !important; } } To make it autoscroll, add this to Settings > Advanced > Code Injection > Footer <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('.gallery-reel-control [data-next]'); reelControls.forEach(reelControl => { (function reelTimer() { setTimeout(() => { reelControl.click(); reelTimer(); }, 2000); // change this value to change the speed })(); }) } }); </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
SnoochMaster Posted November 23, 2022 Author Share Posted November 23, 2022 Thanks Tuanphan, I will give this a try. Seems like a bug that they will fix eventually... I appreciate the time, my client is frustrated. Marc 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