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
Post a Comment