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'); }); });
-
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com