I just created a product grid section that displays certain products depending on your selection choice from a dropdown menu. It works beautifully, except that the product images in the grid do not display unless I slightly resize the page. It doesn’t matter if I make the page larger or smaller – it’s almost as if the page just needs a little “kick” to say ‘oh yea, i need to show the product images now’. Any thoughts on why this is happening or how I can fix this? I’m posting my code below in case it’s helpful to see…
This code doesn’t show the actual code for the product images. We’d need to see what’s in the ‘product-grid-copy’ snippet. A link to a page would be best to help troubleshoot. Anyway, my guess is that there’s some kind of lazy loading feature for the images that needs to be kicked into gear once the products are shown.
Looks like those product cards are meant to fade in using ScrollReveal - https://scrollrevealjs.org/guide/hello-world.html I suppose it doesn’t work because they are all hidden to begin with. So you probably have to call some JS to “reveal” them.
Okay that makes sense. But I don’t quite understand where to paste that line of code that you sent? Do you mind helping me a little bit further? Thanks in advance!