Press "Enter" to skip to content

Free Pure JavaScript Image Zooming Library | Lightense.js

Lightense Images is a dependency-free pure JavaScript image zoom library of fewer than 2KB (compressed) for image enlargement as seen on

image gallery with zoom effect, product image zoom on hover, product image zoom on hover css, image gallery with zoom, image zoom js library


  • Display an enlarged image in a lightbox popup.
  • Custom background color for simplified popups.
  • Auto rejection while scrolling up/down the page.

How to make use of it:

Put the Lightense.js JavaScript library on the bottom of the webpage.

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

Initialize the Lightense on the goal photographs.

window.addEventListener('load', function () {
  var el = document.querySelectorAll('img.lightense');
}, false);

Change the default coloration of the background overlay.

<img src="demo.png" data-background="rgba(0, 0, 0, 0.8)" class="lightense">

You also can specify the picture’s path within the ‘data-image’ attribute.

<a class="lightense" data-image="demo.png">Click me</a>

All default choices.

  time: 300, // animation speed
  padding: 40,
  offset: 40,
  keyboard: true,
  cubicBezier: 'cubic-bezier(.2, 0, .1, 1)',
  background: 'rgba(255, 255, 255, .98)',
  zIndex: 2147483647
}; Like Image Zoom Library, Lightense Images Plugin/Github, medium image zoom, js image zoom, image zoom script

See Demo And Download

Official Website(sparanoid): Click Here

This superior jQuery/javascript plugin is developed by sparanoid. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.