mosaigrid
mosaigrid copied to clipboard
Dynamic photo grid
MosaiGrid
Dynamic photo grid
Usage
CSS inside of head.
<link href="css/grid.css" media="all" rel="stylesheet" type="text/css"/>
Javascript right before close body tag.
<script src="js/grid.js" type="text/javascript"></script>
And initiate it like this.
var grid = new Grid({
element: '#photos',
columns: 6,
margin: 2
});
window.addEventListener('load', function() {
grid.draw();
}, false);
Demo
http://codepen.io/jimoong/pen/LELaQE
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
TODO: Write license