image-pool

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i image-pool

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • tunapeanut