Hi all,
Firstly this is my first post here so please be kind! (Also, apologies if what I’m saying isn’t clear enough.)
OK, so I have a template that generates tiles via a masonry script, and there’s a lot of it. I’ve put it in Codepen seen here: (http://codepen.io/anon/pen/rOxXwZ). The HTML is just the container and where each item is generated.
Basically, I’m trying to filter each item with jQuery by class. The script for the filter can be seen here: (http://codepen.io/anon/pen/GpoVMq).
The filter works, however the tiles don’t reshuffle. The issue I’m having is that I don’t know how to call the masonry script in the first codepen.
Does anyone have any ideas how to reshuffle the tiles? I know this is probably a bit ambiguous or vague, I would just like to know if it’s possible to call the masonry script provided once filtered etc.
Thanks in advance!