vadimkorr / svelte-carousel

The awesome carousel component for Svelte 3 :arrow_left: :art: :arrow_right:
https://vadimkorr.github.io/svelte-carousel
Apache License 2.0
291 stars 64 forks source link

Waterfall Carousel effect? #104

Open 99bits opened 2 years ago

99bits commented 2 years ago

Hi Vadim, Thank you for your amazing project.

Would love to use your carousel and wondering how this can be done.

Cheers

JDLxG

Stranger1586 commented 1 year ago

You would have to scale down all the slides to the right and the left and control the amount scaled in accordance with the index of the slide. This could be achieved with classes. Or you could hook into the pageChange event and update the classes being applied to each slides according with the current index.

omi-jrparreno commented 3 months ago

You would have to scale down all the slides to the right and the left and control the amount scaled in accordance with the index of the slide. This could be achieved with classes. Or you could hook into the pageChange event and update the classes being applied to each slides according with the current index.

can you give an example?