ctcl-image-gallery

1.2.0 • Public • Published

Welcome to ctcl-image-gallery 👋

Version License: MIT

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

🤝 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

Readme

Keywords

Package Sidebar

Install

npm i ctcl-image-gallery

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

10.8 kB

Total Files

5

Last publish

Collaborators

  • ujw0l