ctcl-image-gallery
v1.2.0
Published
Vanilla JS Library to create Image gallery with list of image
Downloads
10
Readme
Vanilla JS Library to create Image gallery with list of image
🏠 Homepage
Install
npm install ctcl-image-gallery
Usage
<script src='ctcl-image-gallery.js'></script> or <script src='ctcl-image-gallery.min.js'></script>
<script>
new ctclImgGal('.image_gallery_2', ('Seletor/s to apply gallery to')
{
mainImgHt:500, ( Number, Gallery and main image width - Optional , default : Element width )
mainImgWd:900, ( Number, Gallery and main image height - Optional , default : Element Height )
imageEvent:'click' (Event to change main image, refer to "addEventListener" in JS, - Optional, default: click)
callBack:(el)=>{} (Call back function to be called when gallery is applied which get gallery element as parameter - Optional )
});
*Parameter 1 - Required
*Parameter 2 - Optional
</script>
Run tests
npm run test
Author
👤 UjW0L
- Website: http://ujw0l.github.io
- Github: @ujw0l
- LinkedIn: @ujwol-bastakoti-559219236
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator