stevenwanderski / bxslider-4

Responsive jQuery content slider
Other
4.22k stars 1.85k forks source link

Working with slide numbers in a carousel #832

Open andrews05 opened 9 years ago

andrews05 commented 9 years ago

Hi I'm just looking at this plugin, haven't tried it yet but I'm wondering: does the pager support scrolling when there are many thumbnails? Like a mini-carousel of sorts.

Tidal-Wave commented 9 years ago

While not directly it is possible to make something like that with this library.

andrews05 commented 9 years ago

Thanks, could you give me a rough idea of how to do that? Is this a feature that could be added sometime?

Tidal-Wave commented 9 years ago

Using the callbacks you can chain two sliders together to create this effect, having one control the other. Thumbnails is definitely on my roadmap, but our next major feature enhancement is captions and data attributes.

andrews05 commented 9 years ago

Great, thanks for that, I'll give it a go.

andrews05 commented 9 years ago

Right, I've tried this out and for the most part it seems to "just work". The only problem I have is getting the thumbnail carousel to scroll automatically when the main slider changes.

The fundamental issue seems to be that for carousels the public functions 'goTo..', 'getCurrent..' etc work in pages, not individual slides. So if I have an index of a thumbnail in the carousel that I want to go to, I don't know how to do this because I don't know what page number the thumbnail is on. Not sure what the best solution would be but perhaps I could work out the page number if the getMoveBy or getPagerQty methods were public?