I want to execute javascript code on any slide move using the current slide #ID.
Simple example: On each slide I placed a div with class=“cont”; now I want to animate that div as the slide gets into view.
Question: Is there a simple way to get the ID of the active splide slide in javascript?
Without success I was trying to to do something like this:
slide-ID = el_cont.closest(“.splide__slide.is-active”).id + set an eventlistner on this slide-id to execute a function…
Any advice?