Lean-Slider icon indicating copy to clipboard operation
Lean-Slider copied to clipboard

Loading images for multiple Sliders

Open matthew-ra-pierce opened this issue 12 years ago • 2 comments

I was able to place three sliders on the same page by adding ID's, but once uploaded to my server (Works fine on my own pc) I can't get images to load past the first slider. Is there any way to make this work?. issue

matthew-ra-pierce avatar Jun 21 '13 23:06 matthew-ra-pierce

Hi @Gantrof Did you manage to fix it?

nfedyashev avatar Aug 24 '14 17:08 nfedyashev

If anyone encounters similar issue, I managed to fix it using this snippet(there is a better way but it works):

sliders = $('.sliders')
_.each(sliders, (slider) ->
  $(slider).leanSlider
    directionNav: $(slider).siblings('.slider-direction-nav')
    controlNav: $(slider).siblings('.slider-control-nav')
  )

It is written in coffee-script but you get the idea.

nfedyashev avatar Aug 24 '14 17:08 nfedyashev