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.

Related Posts


How to Create a Simple Cookie Banner Consent Using Bootstrap 4

Cookie Consent Popup Javascript – Quick and simple tutorial for creating a simple Bootstrap cookie banner. If you have a website or blog with people visiting or…


Create Custom HTML Terminals With Pure JavaScript | shell.js

Custom HTML Terminals is A JavaScript library to create HTML terminals on web pages. The shell js JavaScript library offers a straightforward method to create Ubuntu, OS X,…


Bootstrap Alert, Confirm, and Flexible Dialog Boxes | Bootbox

Bootbox.js is a small JavaScript library that allows you to create programming dialogs using Bootstrap templates, without having to worry about creating, managing, or removing any required…


An Accessible Touch-enabled Slider Web Component | fg-carousel

fg-carousel Slider – A simple & modern slider web component to create versatile, accessible, touch-enabled picture carousels utilizing CSS scroll snap, Custom Element, and Intersection Observer API….


A Lightweight and Efficient Tags Input Component in Vanilla JS | tagify

tagify transforms an input field or textarea into a tags component, in an easy and customizable way, with great performance and a small code footprint, full of…


A Lightweight Library to Copy Text to Clipboard | CopyJS

CopyJS is a lightweight JavaScript library that allows you to copy plain text or HTML content to the clipboard. Must Read: Tiny Library for Copy Text In…