Dynamic-grid is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space (for example, as in Tetris game).
Parameter | Type | Default | Description |
---|---|---|---|
el | String | ' ' | CSS selector of the grid container element |
column | Number | 3 | Grid column count |
margin | Number | 15 | Spaces between column (px) |
offset | Number | 0 | Spaces around grid container (left & right) (px) |
transitionSpeed | Number | 250 | Grid animation speed (ms) |
transitionFunction | String | 'ease' | Timing function of grid animation |
hideClass | String | 'hidden' | Class for hide (ignore) some elements |