Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Correct order for load and layout
jQuery(document).ready(function($){
$('section.loading').fadeOut('fast');
$('section.gallery').imagesLoaded(function() {
$('.gallery').packery({
itemSelector: 'div',
gutter: 10
});
$('section.gallery').addClass('loaded');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment