brianblum Posted December 16, 2023 Share Posted December 16, 2023 Hi, I just tried using this code to make my site only show the mobile fallback image (which is an animated .gif) in the header but on mobile the image shows then transitions into the video background (which we only want to play on desktop). /* Mobile view */ @media screen and (max-width:767px) { /* top video */ [data-section-id="61eeca1c45abed068a17018b"] .content-fill>*:not(img) { display: none; } [data-section-id="61eeca1c45abed068a17018b"] .is-ready { display: none; } [data-section-id="61eeca1c45abed068a17018b"] img { left: -120% !important; } } Can someone help us make this work properly? Attached is a screen-recording of both the animated image (.gif) and the video playing. We just want the .gif (mobile fall-back image) to play on mobile. RPReplay_Final1702762761.MP4 Link to comment
tuanphan Posted December 19, 2023 Share Posted December 19, 2023 Show you want Desktop: Show video Mobile: Show a gif/image ? https://www.somethingboring.com/ 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment