A plugin for putting elements in a grid.
See the demo.
-
Make sure you have Node.js installed, or else download and install from nodejs.org
-
If you do not have Bower installed yet, run the following command and install it globally:
npm install -g bower
-
Run the following commands in terminal to install gulp, it's plugins, external jQuery plugins and build the minified files:
npm install
bower install
gulp
Now you are ready to code and make awesome tricks!
Name | Description | Default | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dimension | Space that each square in the grid will occupy. | -- | ||||||||||||||||||||||||||
columns | Number of columns of the grid. May be passed as width as well. | -- | ||||||||||||||||||||||||||
lines | Number of lines of the grid. May be passed as height as well. | -- | ||||||||||||||||||||||||||
width | Width of the grid. Consider passing a value divisible by the dimension parameter. | -- | ||||||||||||||||||||||||||
height | Height of the grid. Consider passing a value divisible by the dimension parameter. | -- | ||||||||||||||||||||||||||
showGrid | Whether show a representative background grid or not. | true | ||||||||||||||||||||||||||
components |
Elements to be inserted into the grid. Parameters:
|
-- |