Home › Forums › JavaScript › Masonry not working >.< › Re: Masonry not working >.<
May 27, 2012 at 8:18 pm
#103547
Participant
@Odd_E “have you tried putting the scripts at the bottom, right before the body tag?”
There may be a conflict, then. I’m not sure. It seems like it’s related to your CSS because the top one tries to animate.
I just recently had an issue with my images using Masonry.js and the following code worked.
var $container = $('#content');
$container.imagesLoaded(function(){
$container.masonry({
itemSelector : '#posts',
isFitWidth: true,
isAnimated: true
});
});