KevinBatdorf / liquidslider

A Responsive jQuery Content Slider
161 stars 62 forks source link

Need help trying to load 2 slides from 1 anchor #169

Open iontorres opened 7 years ago

iontorres commented 7 years ago

Hi, I've been trying to load 2 slides from different sliders containers and i need both to move when i make click to a single anchor, the thing is i just can't make this work is there a solution?

Thanks in advance :)

KevinBatdorf commented 7 years ago

I'm not 100% sure what you're trying to do, but each slider object has an API that you can control from anywhere. Check this link for some examples.

in psuedo code

var api1 = $.data( $('#slider-1')[0], 'liquidSlider');
var api2 = $.data( $('#slider-2')[0], 'liquidSlider');
$(.yourButton).('click', '.yourContainer', function() {
  api1.setNextPanel(2);
  api2.setNextPanel(2);
});
iontorres commented 7 years ago

Yep, that helped a lot actually what i was trying to reach is when i have 2 sliders which need to be and load synchronized when I select an unique anchor called "Next". So the link and example in the download make great difference, Thanks a lot for the help.