Home

Awesome

touchTouch

Enhanced Vanilla JavaScript version of touchTouch Optimized Mobile Gallery by Martin Angelov

touchTouch Optimized Mobile Gallery

version: 1.5.2 (9.8 kB minified)

Live Demo

MIT License

API: (see test/demo.html)

<div id="gallery">
<a class="magnifier" href="./imgs/1.jpg"><img src="./imgs/thumbs/1.jpg" /></a>
<a class="magnifier" href="./imgs/2.jpg"><img src="./imgs/thumbs/2.jpg" /></a>
<a class="magnifier" href="./imgs/3.jpg"><img src="./imgs/thumbs/3.jpg" /></a>
</div>
const slideshow = touchTouch(document.getElementById('gallery').querySelectorAll('.magnifier'), options);
slideshow.showGallery(); // show gallery programmatically
slideshow.hideGallery(); // hide gallery programmatically
slideshow.showNext(); // navigate to next image programmatically
slideshow.showPrevious(); // navigate to previous image programmatically
slideshow.dispose(); // dispose the slideshow instance

Supported Options:

Supported Actions:

see also: