Masonry Code (v3):
$(function msnry(){ var columns = 3, setColumns = function() { columns = $( window ).width() > 640 ? 3 : $(window).width() > 320 ? 2 : 1; }; setColumns(); $(window).resize(setColumns);
My container for masonry (otherwise my portfolio)
<div id="portfoliocontent" class="portfoliocontainer"></div>
My goal is to hide all divs with the class "designshwr" that works, however reloading the masonry doesn't work at all.
$('.engineeringiC').click(function(){ if($('div.item').hasClass('designshwr')){ $('div.item.designshwr').hide('fast'); $('.portfoliocontainer').masonry('reloadItems');
}
Any suggestions? I scratched my head last week in a variety of ways to make it work, and I still couldn’t:
source share