Basic Gallery
Usage
const BasicGallery = require('csc-adv-int-basic-gallery');
document.addEventListener('DOMContentLoaded', () => {
const base = document.getElementsByClassName('gallery')[0];
const containerWidth = base.getBoundingClientRect().width;
const displayHeight = Math.round((containerWidth * 375) / 500);
base.style.height = "" + displayHeight + "px";
const gallery = new BasicGallery(base.getElementsByClassName('full-images')[0]);
}, false);
Public Methods
constructor(container, options) { }
next() { }
prev() { }
wrapIndex(index) { }
slide(destinationIndex, slideSpeed, ignoreWrap) {}
resetSlide(index, offset, delay) {}
slideChanged() {};