image-pool
a drag and drop library for displaying images
Development
- npm install
- npm start
- http://localhost:8080
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