Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirejordansmith/5a8211a3504ad0e967b8 to your computer and use it in GitHub Desktop.
Save hirejordansmith/5a8211a3504ad0e967b8 to your computer and use it in GitHub Desktop.
How to make BxSlider hide all slides until the page loads
<div class="bxslider-wrap">
<ul class="bxslider">
<li>Image / Content</li>
<li>Image / Content</li>
<li>Image / Content</li>
</ul>
</div>
jQuery(document).ready(function($) {
$('.bxslider').bxSlider({
onSliderLoad: function(){
$(".bxslider-wrap").css("visibility", "visible");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment