Masonry items overlapping…is it the callback?
-
I’m using Masonry.js to lay out the items, and it’s working but before all the photos are loaded, so the blocks are overlapping unless you refresh the page. I added ImagesReloaded.js to fix that problem, but it persists.
Then it occurred to me that it might be the callback in the plugin, which is this:
$('#posts').masonry('reloadItems').masonry();
(#posts is the div that holds all the masonry items, which have the class .itemBlock)
Is there something wrong with the callback which is failing or preventing the ImagesReloaded script from working?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Masonry items overlapping…is it the callback?’ is closed to new replies.