kayla13 Posted January 12, 2022 Share Posted January 12, 2022 Site URL: https://www.venturacoach.com/why-coaching I have a card carousel section in several pages on my website and they display fine on desktop but when I go to mobile I have to click an arrow to scroll through them and I want the cards to be displayed when I scroll down (vertically) instead of having to click an arrow. Does anyone have code for this? I've seen some code for blog posts but not for carousels. Thanks! Link to comment
tuanphan Posted January 14, 2022 Share Posted January 14, 2022 On 1/13/2022 at 5:32 AM, kayla13 said: Site URL: https://www.venturacoach.com/why-coaching I have a card carousel section in several pages on my website and they display fine on desktop but when I go to mobile I have to click an arrow to scroll through them and I want the cards to be displayed when I scroll down (vertically) instead of having to click an arrow. Does anyone have code for this? I've seen some code for blog posts but not for carousels. Thanks! Add to Design > Custom CSS /* list carousel on mobile */ @media screen and (max-width:767px) { ul.user-items-list-carousel__slides.user-items-list-carousel__slides--initialized { display: block !important; } li.user-items-list-carousel__slide.list-item.list-item-basic-animation { transform: unset !important; margin-bottom: 20px; } } kayla13 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
kayla13 Posted January 14, 2022 Author Share Posted January 14, 2022 Thank you!! This worked great. I added the below to remove the arrows on mobile as well. /* list carousel on mobile */ @media screen and (max-width:767px) { ul.user-items-list-carousel__slides.user-items-list-carousel__slides--initialized { display: block !important; } li.user-items-list-carousel__slide.list-item.list-item-basic-animation { transform: unset !important; margin-bottom: 20px; } .mobile-arrows { display: none !important; } } tuanphan 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