Lazy Load Image Functionality Built with Vanilla JS

lazy-load-images is a very small (less than 1KB) image loader library with no third dependencies.

lazy loading images, loadinglazy, lazy loading example, lazy loading with blurred image effect, lazy loading javascript

How to make use of it:

1. Import the compiled version of the lazy loader library into your HTML page.

<script src="dist/index.js"></script>

2. Specify images for lazy loading in the data-src attribute:

<img class="visible-image" data-src="1.jpg">
<img class="visible-image" data-src="2.jpg">
<img class="visible-image" data-src="3.jpg">

3. Apply a fade effect to the image when loaded.

img {
  max-width: 100%;
  max-height: 100%;
  -webkit-transition: opacity .5s;
  transition: opacity .5s
}
.visible-image { opacity: 1 }
.hidden-image { opacity: 0 }

minimalist image lazy loader, lazy-load-images Plugin/Github


See Demo And Download

Official Website(ShlokD): Click Here

This superior jQuery/javascript plugin is developed by ShlokD. For extra advanced usage, please go to the official website.

Related Posts

Responsive-Multiple-Selection-Combo-Box-using-Bootstrap-3

Responsive Multiple Selection Combo Box using Bootstrap 3 | MagicSuggest

MagicSuggest is an easy-to-use jQuery plugin for creating a combo menu that allows you to select multiple items from a dropdown list with typing and auto-complete support….

material-design-tab-vanilla-js

Material Design Inspired Tab UI In Vanilla JavaScript

Material Design tab vanilla JS implements a material design-inspired tab component with a click ripple effect and an active sliding menu cursor. Must Read: Responsive Accessible Tabs…

countdown-timer-app

Simple Countdown Timer App In jQuery

The countdown is a front-end application that allows starting the countdown with two options: set a target date or write the number of countdown days. A countdown…

html5-animate-js

Add Animation to Your HTML5 Pages | animate.js

animate.js is a small JavaScript library that provides a convenient way to apply CSS animations powered by Animate.css to DOM elements without writing any CSS. Easily apply…

vue-responsive-parallax-cards

Responsive Hover Parallax Cards With Vuejs

Vue Responsive Parallax Cards Hover Create response cards with a scroll-triggered parallax effect in your Vue.js application. Must Read: jQuery Sliding Display Your Content Like a Deck…

pure-css-tabs-responsive

Responsive Pure CSS Only Accordion & Tabs Component

Responsive pure CSS accordion tabs and tabs will automatically convert to a vertical accordion interface on mobile devices. Must Read: Create Dynamic Accordion Giving JSON Data Using…