if ($(window).width() >= 320 && $(window).width() <= 480) {
$(".projects").slice(1, 8).css("margin", "10px");
} else {
$(".projects").slice(3, 6).css("margin", "10px");
};
Its working good with default without resize finction. I try set this with:
$(window).resize(function() {
})
But not working. Any idea why?