jquery - Show/Hide div using classes and masonry -


i looked @ existing question , didn't find fixed problem. im using masonry display content accordingly filters.

im using js hide , show entire classes , reload masonry of container:

$(document).ready(function(){ $('#allvfx').click(function(){       $('.itemfilm').hide();       $('.item').show();       $('#container').masonry(); });   $('#allfilms').click(function(){       $('.item').hide();       $('.itemfilm').show();       $('#container').masonry();  });   }); 

the problem when clicking on first filter "allvfx" works, using second filter "allfills" makes freeze.

any ideas? thanks


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -