Masonry a great library to create dynamic layouts, but what if you want to call any function once the masonry is being called and worked. I checked the Masonry docs but didn't found anything useful. So what I did is to use jQuery's deferred method that have some awesome functions.
When I tried a few ways only this method works.
When I tried a few ways only this method works.
$.when(
// Call Masonry
).done(
// Callback goes here
);
For Infinite Scrolling the above mentioned method won't work. But for infinite scrolling read Masonry's Docs.
Post A Comment:
0 comments: