The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Image set to “contain” on mobile is behaving weird (SASS)
In a site I have set the slideshow image to be contained in mobile instead of cover. The code I have is this: https://codepen.io/ninjanutz/pen/bKMEBN
But when the page loads you can see the full size of the image for just a little while before it’s correctly sized. Can someone help me know why? See here how the image shows full when the page is loaded and resizes almost right after. You can see a video of the problem here: https://www.useloom.com/share/bc5ebe1f3a5c47418bb92363b66a014a Of you can check the site directly and see it in mobile: https://uayr6mtl2mnia03o-27980032.shopifypreview.com
Thanks so much for all your help.