Responsive Header and Carousel

oh wait I have to put in a class or ‘contain’ or ‘cover’ on my image right?

Yes you need to target the image with js and then initialise it correctly.

$('.imageName').objectFit({type: 'cover', hideOverflow: true}); // hiding overflow is only relevant to cover

Change ‘imageName’ to a class that is on the images. I’m not sure how well the polyfill will work on hidden images so may be a question for the js forum.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.