document.addEventListener('DOMContentLoaded', (event) => {
// Give some time for Bricks to initialize the sliders
setTimeout(() => {
// Replace 'bjzxva' with your actual Slider element ID
const mySlider = window.bricksData?.splideInstances['bjzxva'] || false;
if (mySlider) {
// Initialize Splide with vertical settings
const splide = new Splide(mySlider, {
direction: 'ttb', // Top to bottom for vertical scrolling
height: '10rem', // Set your preferred height
wheel: true, // Enable scrolling with the mouse wheel
waitForTransition: true // Ensures smooth transitions between slides
});
// Mount the slider
splide.refresh();
console.log(mySlider)
}
}, 250);
});