Say you have an array of elements that you wish to display as a grid. The general formula for this would be:
var numColumns = Math.floor(viewport.width / itemWidth);
for(var i = 0; i <
I am an interactive software developer and employee of Diverse Interactive.I get to work on awesome projects with some high profile clients.