# imgSlides.js A responsive easy to use image presentation tool with no external dependencies. Developed initially to display portraits.  ## Demo Click [here](https://ozturkkl.github.io/ImgSlides.js/demo/index.html) to view the demo. ## Usage Fist download the [script file](https://raw.githubusercontent.com/ozturkkl/ImgSlides.js/master/dist/imgSlides.js) and the [css file](https://raw.githubusercontent.com/ozturkkl/ImgSlides.js/master/dist/imgSlides.css) include them in your project. ```html ``` Create a div element and add "imgSlides" class to it. Set it's width and height according to your preference. The slide will be responsive according to the size that is set for it. ```html
');
imgSlide.insertAdjacentHTML('beforeend', '
');
imgSlide.insertAdjacentHTML('beforeend', '
');
```
- You can empty the div to remove all the images and get an empty canvas.
```js
const imgSlide = document.querySelector("#my-image-slide-1")
imgSlide.innerHTML = ''
// After emptying the imgSlides div element, code will detect the change and re-initialize the canvas. Will result in an empty slide canvas.
```
- If you want to delete a certain image after the slide is initialized, you can find the images in `#my-image-slide-1 .imgSlidesCanvas`:
```js
const images = document.querySelector("#my-image-slide-1 .imgSlidesCanvas")
console.log(images.children)
// Will return an HTML collection that has all the images. You can delete any image using this collection and the slide will update automatically.
```
## License
This project is licensed under the MIT License.