minigrid1.1.0 • Public • Published
Minimal 2k (842 bytes compressed) zero dependency cascading grid layout.
npm install minigrid
Or for the browser:
bower install minigrid
var grid = ;;
To avoid weird stuff to happen I'd suggest set
position: relative in your main container.
left to your grid items.
minigrid(containerSelector, itemSelector, gutter);
- containerSelector -
- itemSelector -
- gutter -
number: gutter between items, default is
minigrid is dead-simple and doesn't provide anything in-the-box however you can achieve this easily by doing:
transition you can apply it to the grid item e.g.
MIT © 2015 Henrique Alves