Hello-
I am working with a website where we are trying to use the Layout Slider in a way that also has a list of links as a menu separately on the side for navigating between slides (this is being used as a way to showcase some products, and navigating directly between them). I am wondering if there is a way to either access, or get notified through an event, of which slide is currently visible in order to change the color of its corresponding link in the menu.
Thank you in advance!
Hi WebDev90
Thanks for reaching out.
Please, see Page: Layout Slider and let us know if that helps with this particular application.
Hi Andrew-
Thank you for your reply. I had come across that article, and it was very useful for getting the slider set up with direct links, it just didn’t have any mentions about callbacks. However, after a little digging, I found that the layout slider is built using a jQuery library called Cycle2. I went through their API library and found the events that I needed in order to dynamically update the style of the menu links (specifically “cycle-before” or “cycle-after” for this task).
Here is the link to their library if anyone is looking to dig into the features of the layout sliders a little more: http://jquery.malsup.com/cycle2/api/.
Thanks again for your quick reply and help with this question.
Hi, sorry for missing the specifics of your question. I’m really glad to hear you made progress with the Cycle2 API. Thanks for sharing your findings and progress here on the forum. If SiteOrigin questions arise in the future, please, let us know.
Cheers for now :)