Skip to content

jimoong/mosaigrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

TODO: Write license

About

Dynamic photo grid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published