Minimal Image Lightbox In Pure JavaScript – zoomzoomzang

Category: Javascript , Modal & Popup , Zoom | July 24, 2017
Author: julienzmiro
Views Total: 1,250
Official Page: Go to website
Last Update: July 24, 2017
License: MIT

Preview:

Minimal Image Lightbox In Pure JavaScript – zoomzoomzang

Description:

zzz.js (zoomzoomzang) is a CSS-less vanilla JavaScript image zoom plugin to create a fullscreen lightbox to showcase your images in a simple way. Inspired by Medium.com.

How to use it:

Link to the zoomzoomzang’s JavaScript file:

<script src="zzz.js"></script>

Add the CSS class ‘zzz.js’ to the images.

<img src="1.jpg" class="zzz">

Initialize the library and specify the color of the background overlay.

zzz.init("#fafafa");

You Might Be Interested In:

Leave a Reply