简体   繁体   中英

slick set active elememnt

how to set active element from js when slick shows all slides without any arrows?

The only thing I have found is this

$('#carousel').slick('slickGoTo',10);

but it only work when there are arrows, and does not work when screen is wide enought to hidde arrows.

i found and the answer is to use this function setSlideClasses

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM