Blogger Ever

Callback after Masonry load

What if want to call a function once the Masonry layout achieved.
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.
// Call Masonry
// Callback goes here
See the Pen qERQLP by Mohammad Hamza Dhamiya (@hamzadhamiya) on CodePen.

For Infinite Scrolling the above mentioned method won't work. But for infinite scrolling read Masonry's Docs.

2013-2016 Copyright Blogger E\ver . Coded, managed and founded by Mohammad Hamza (@hamzadhamiya) . Hosted on Blogger and fonts used are Raleway and Open Sans.