0.1.0 • Published 7 years ago

image-pool v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

image-pool

a drag and drop library for displaying images

Development

Usage

const images = [
  {src: './example/img/1.png'},
  {src: './example/img/13.jpg'},
  {src: './example/img/2.png'},
  {src: './example/img/14.jpg'},
  {src: './example/img/3.png'},
  {src: './example/img/15.jpg'},
  {src: './example/img/4.png'},
  {src: './example/img/16.jpg'},
  {src: './example/img/5.png'},
  {src: './example/img/17.jpg'},
  {src: './example/img/6.png'},
  {src: './example/img/18.jpg'},
  {src: './example/img/7.png'}
];
const app = document.getElementById('app');
const options = {
  container: app,
  images: images,
  columns: 5,
  callBack: (imgs) => console.log(imgs)
};
new ImagePool(options);

Demo

https://johanye.github.io/image-pool/

License

MIT