Can I trigger a slide change with Javascript?
-
Hi!
Loving Gutenslider, but I’m being asked to create a custom tab-like UI that updates when the slider rotates, but is also clickable, triggering the Gutenslider to move.
I’ve got it working for the UI to update based on reading which slide has the “active” class, but I don’t have a good way of triggering the slide change from my UI…
Right now, I’m enabling the pips, and having javascript call a
click()on them. The problem is that on smaller screens, the screen automatically scrolls down, which feels very broken. If there’s a way to disbale that feature, it would sort me out as well.Likely a better solution would be to hook into a public method within Gutenslider to trigger the change. Does something like that exist?
Thanks a million!
The topic ‘Can I trigger a slide change with Javascript?’ is closed to new replies.