Created
February 5, 2015 19:30
-
-
Save hirejordansmith/5a8211a3504ad0e967b8 to your computer and use it in GitHub Desktop.
How to make BxSlider hide all slides until the page loads
This file contains 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
.bxslider-wrap { visibility: hidden; } |
This file contains 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
<div class="bxslider-wrap"> | |
<ul class="bxslider"> | |
<li>Image / Content</li> | |
<li>Image / Content</li> | |
<li>Image / Content</li> | |
</ul> | |
</div> |
This file contains 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
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