Skip to content

How can I get the active slide element after the slider has finished moving? #1145

Closed Answered by Webberjo
Webberjo asked this question in Q&A
Discussion options

You must be logged in to vote

After digging through the docs, I came up with this solution:

slider.on('moved', function(newIndex) {
  const active_slide = slider.Components.Slides.getAt(newIndex).slide;
  console.log(active_slide);
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Webberjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant