Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.83k stars 418 forks source link

Auto height dont worked #1170

Open kozhin2012 opened 1 year ago

kozhin2012 commented 1 year ago

Checks

Version

4

Description

auto height dont worked

Reproduction Link

https://codepen.io/mathieualphamosa/pen/JjpxqYd

Steps to Reproduce

https://codepen.io/mathieualphamosa/pen/JjpxqYd

Expected Behaviour

see reference of autoheight https://swiperjs.com/demos/390-autoheight/core

wplit commented 1 year ago

The autoHeight option doesn't do what you think it does, it just shares the same name with that swiper option. But in splide it's for vertical sliders to make sure the heights are auto, it's not for adapting the height in real time as the slider moves. (like the option of same name does in Swiper)

https://splidejs.com/guides/options/#autoheight