Skip to content

Instantly share code, notes, and snippets.

@kirandash
Created March 13, 2017 10:16
Show Gist options
  • Select an option

  • Save kirandash/64f8c608f452c558d601941659daa5b9 to your computer and use it in GitHub Desktop.

Select an option

Save kirandash/64f8c608f452c558d601941659daa5b9 to your computer and use it in GitHub Desktop.
Slick on Initialize set the images and text in it to visible.
$('#fleet-gallery').on('init', function(event, slick){
//Solves the issue of repeating lightbox items on loop
$('.slick-cloned').removeAttr("data-lightbox");
$('#fleet-gallery img').css('visibility','visible');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment