Skip to content

Instantly share code, notes, and snippets.

@jsakhil
Created May 11, 2021 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsakhil/a7eb0829aa43243b7bcfacf5213a2187 to your computer and use it in GitHub Desktop.
Save jsakhil/a7eb0829aa43243b7bcfacf5213a2187 to your computer and use it in GitHub Desktop.
DYNAMIC SLICK DOTS
// 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