splide
splide copied to clipboard
Vertical slider with fade only shows first slide
Checks
- [X] Not a duplicate.
- [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions
Version
4.1.4
Description
Splide with direction: ttb
and type: fade
only shows the first slide. Navigating to the 2nd+ slide does not show the active slide.
Reproduction Link
https://jsfiddle.net/zy7dj0nv/2/
Steps to Reproduce
- Set
direction
tottb
- Set
type
tofade
Expected Behaviour
2nd+ slide is visible when navigating to it.
Setting the height
and heightRatio
does not help either.
Currently experiencing the same thing on a project I am working on
The issue is located in Fade.ts. The transform is set to translateX and is not configured based on the direction option.