An open API service indexing awesome lists of open source software.

https://github.com/dmitriyakkerman/simple-gallery

Simple product-cart gallery with the main image and the set of other images of the product
https://github.com/dmitriyakkerman/simple-gallery

Last synced: about 2 months ago
JSON representation

Simple product-cart gallery with the main image and the set of other images of the product

Awesome Lists containing this project

README

        

**Example**

https://codepen.io/mickyholbrook/pen/GRpQpjB

1.Markup. Create the root element with any selector, put inside the container element and your images:



2.Add main styles im HEAD tag:



3.Add main Javascript code in the end of BODY tag:



4.Initialization. Init gallery by specifying the root selector:

document.addEventListener('DOMContentLoaded', function() {
new SimpleGallery({
el: document.querySelector('.my-gallery')
})
})