Created
May 11, 2021 08:30
-
-
Save jsakhil/a7eb0829aa43243b7bcfacf5213a2187 to your computer and use it in GitHub Desktop.
DYNAMIC SLICK DOTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DYNAMIC SLICK DOTS | |
function dynamic_slick_dots(slickItem, slickLimit){ | |
if($(slickItem).length < slickLimit){ | |
$(slickItem).parents('.slick-slider.slick-dotted').find('ul.slick-dots').hide(); | |
} | |
} | |
// DYNAMIC SLICK DOTS | |
dynamic_slick_dots('.slick_slide:not(.slick-cloned)', 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment