UI Deploy

Curated, Short, Web UI Dev we Love.

minigrid - Minimal 2kb zero dependency cascading grid layout

API

minigrid(gridContainer, itemSelector, gutter, animate, done)

    gridContainer - string|node: required. The element selector or element where your grid items sit.
    itemSelector - string: required. The grid item element selector.
    gutter - number: optional. The space between items, the default is 6.
    animate(element, x, y, index) - function: optional.
    done(nodeList) - function: optional. Callback called after the grid is built. It returns the node list of grid items.

view source

Advertisement