I am using the wonderful masonry cascading grid layout library to display a number of projects
on my website.
This is my javascript:
var container = document.querySelector('#projects');
var msnry = new Masonry( container, {
// options
columnWidth: 280,
itemSelector: '.project'
});
Now, in the sidebar of my website I am also listing the various categories
that my projects
belong to, so a user can filter them.
It would be nice if a click on a category would also trigger the masonry effect, a bit like in this example.
How can this be achieved?
I am fairly new to Javascript and jQuery, so the solution is probably a simple one.
Thanks for any help.