JS event on change of slide in carousel
-
-
Dear @fbn
it is not really possible to access this.
Flickity is too integrated in the theme.Best!
Marius
-
Hi @mariusjopen,
thanks for your reply. So that means there is no way to run an action on image change of the carousel? Is there a way to enable Flickity so I can use its events?
Thanks,
Florian -
Dear @fbn
we are working on that regarding another question of a user.
Just a moment…:-)
Best!
Marius
-
-
:-D Thank you for your patience!
-
Hey!
Yeah of course you can use flickity's events!
window.laytheme.on('newpageshown', function(){ jQuery('.lay-carousel.transition-sliding').on('select.flickity', function(event){ var flkty = Flickity.data( event.target ); var ix = flkty.selectedIndex; console.log('do sth'); }); }); -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login