Closed (fixed)
Project:
Slick Carousel
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2018 at 10:18 UTC
Updated:
29 Dec 2018 at 21:14 UTC
Jump to comment: Most recent
Comments
Comment #2
mossel commentedaccidentally assigned myself
Comment #3
gausarts commentedWe do have UI for this. You may want "focusOnSelect" option at your optionset UI.
Feel free to re-open if that is not the case.
Comment #4
gausarts commentedComment #5
mossel commentedThanks gausart. Unfortunately FocusOnSelect does not do what I need. What I am looking for is the option to click the active (visible) slide so the carousel advances to the next (hidden) slide. NB. I only have one slide visible at a time and am not using thumbnails or dots for navigation.
Comment #6
mossel commentedComment #7
mossel commentedComment #8
gausarts commentedI made a fiddle:
http://jsfiddle.net/o4toq31q/1075/
Change the last param to
falseto keep the sliding animation:$slider.slick('slickGoTo', curSlide, false);Feel free to re-open if still an issue.
Comment #9
mossel commentedThanks for the work gausarts, much appreciated. The only issue I'm now faced with is that I have multiple carousels on one page. Clicking one results in all the carousels to move to the next image.
I'm not sure how to rewrite your fiddle so that only the one carousel is addressed?
Comment #10
gausarts commentedPlease consider below:
slick.load.min.jsto your heart content at the risk of being left behind from upstream changes. Or better extend usinghook_library_info_alter(), or via themes, orhook_page_attachments(), whatever is easier for you.slick.load.min.js.No need to always reinvent the wheel. Start from any given or available source, and DIY as needed.
I will leave the rest for you as an exercise ;)
Feel free to share your findings to benefit others, but let's keep it closed, then, as the original issue was already addressed.
Comment #11
mossel commentedThanks.
I ended up adding
to slick.load.min.js