I configured the Splide.js slider for vertical scrolling in a top-to-bottom direction. However, it is currently behaving in the opposite way, scrolling from bottom to top. Could you clarify why this is happening?
In the WordPress Bricks theme, I am using the Nestable Slider. It supports vertical sliding with the direction set to ttb (top-to-bottom).
My requirement is:
The slider should run continuously from top to bottom in an infinite loop with a duration of 40,000ms.
On hover, the slider should pause.
When the hover is removed, it should resume scrolling from top to bottom.
However, with my current JSON configuration:
The slider pauses on hover as expected, but
It scrolls in the wrong direction (bottom to top), not top to bottom.
I need the slider to:
Pause on hover.
Resume automatically after hover.
Always scroll in the top-to-bottom direction with an infinite loop.
How can I fix this issue? Below is the JSON code I am currently using:
json code
{
“type”: “loop”,
“direction”: “ttb”,
“height”: “600px”,
“gap”: “1rem”,
“perPage”: 2,
“perMove”: 1,
“speed”: 40000,
“interval”: 40000,
“autoplay”: false,
“arrows”: false,
“pagination”: false,
“pauseOnHover”: true,
“pauseOnFocus”: false,
“mediaQuery”: “max”,
“breakpoints”: {
“991”: {
“direction”: “ltr”,
“height”: “400px”,
“perPage”: 2,
“perMove”: 1,
“speed”: 40000,
“interval”: 40000,
“autoplay”: false
},
“667”: {
“direction”: “ltr”,
“height”: “350px”,
“perPage”: 2,
“perMove”: 1,
“speed”: 40000,
“interval”: 40000,
“autoplay”: false
},
“480”: {
“direction”: “ltr”,
“height”: “300px”,
“perPage”: 1,
“perMove”: 1,
“speed”: 40000,
“interval”: 40000,
“autoplay”: false
}
}
}