Image Carousel Distorts Images - Question | JoomShaper

Image Carousel Distorts Images

PB

Petr Benes

SP Page Builder 1 month ago

Hi, the Image Carousel addon distorts images, the aspect ratio of images in the carousel is changed, so the images are distorted on different screen sizes.

https://prnt.sc/BiusPhdUksMB

Live site: https://soucitnysvet.cz/

But the same is in you demos: https://www.joomshaper.com/page-builder/blocks

Simply resize the width of browser window and see how the images destroys.

The aspect ratio of images should never be changed.

I reported this issue almost two years ago, but it's still not fixed. https://www.joomshaper.com/forum/question/13863

Thanks, Petr

0
2 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 1 month ago #151363

Hi there!

Sorry for your experience.

Please use the following code in your custom CSS:

.sppb-carousel-extended-item img {
    object-fit: contain;
}

This should keep your image aspect ration same for all device screens.

Here is all about custom code placement in Helix Ultimate: https://www.joomshaper.com/documentation/helix-framework/custom-code-css-js-meta

Kindly, do let me know if it helps!

Best Regards

0
PB
Petr Benes
Accepted Answer
1 month ago #151954

Hello,object-fit: cover helped, thanks for direction.

0