Custom Slider with varied sizes

Hi Guys,

I’m trying to build a slider that will allow for images with different aspect ratios. Please see example :

I have managed to build one where the next and previous slides are visible by adjusting the mask width and turning overflow to visible. However, I’m hoping that I can set the mask so that the slide is sized based on the size of the image.

Hope this makes senes!

Many Thanks!

James


Here is my site Read-Only: https://preview.webflow.com/preview/burkerickhards?utm_medium=preview_link&utm_source=designer&utm_content=burkerickhards&preview=5ae2c273036a75b0a4ef0456486dbed2&pageId=5d7bb88eb509ea207a57c4b7&mode=preview
(how to share your site Read-Only link)

Hello @burky2501
I’m trying to create a similar slider with portrait and landscape images. Looks like you cracked it! Do you mind sharing how you solved this? Thanks.