0.0.0 • Published 4 years ago
@ronashdkl/kod-product-images v0.0.0
kodProduct Images Plugin
By Ronash Dhakal. Version 0.0.0
Todo
- Image zoom
- download the repository
- cd into the project
npm install
it and run it bynpm start
- to build your project
npm build:prod
- Link style and script in html file from dist folder.
- copy assets directory to your project directory.
- copy and paste following code inside html body
<div class="kod_product_image">
<div id="kod_thumbs_wrapper">
<img src="/assets/n_p.png" class="kod_arrow up" alt="">
<div id="kod_thumbs"></div>
<img src="/assets/n_p.png" class="kod_arrow down" alt="">
</div>
<div id="kod_image"></div>
<div id="kod_zoom"></div>
</div>
- call KodProductImage() inside script tag in html or create new custom.js and call it.
KodProductImage(image:array) require images array. i.e url of image
KodProductImage([
'/assets/images/1.jpg',
'/assets/images/2.jpg',
'/assets/images/3.jpg',
'/assets/images/4.jpg',
'/assets/images/5.jpg',
'/assets/images/6.jpg',
])();
Screenshot
0.0.0
4 years ago