Slick Slider slickGoTo method breaking the carousel

前端 未结 3 1997
庸人自扰
庸人自扰 2021-02-20 10:41

I\'m working on a news article page that also has a gallery of images. I\'m using slick slider for the thumbnails on the gallery. Every image in the gallery has it\'s own url f

3条回答
  •  庸人自扰
    2021-02-20 11:31

    As of version 1.4, the methods to invoke actions have changed.

    The equivalent code line for the slickGoTo() function is $('#slider_selector_id').slick('slickGoTo', slide_number);

    (where #slick_selector_id is the id for the slider, and slide_number is an integer of the slide index required)

    (answer from comment as suggested by Alexandre Bourlier in response to the another answer here)

提交回复
热议问题