Imitate Interlaced Progressive Image Loading Effect on JavaScript

Interlace.js is a pure JavaScript plugin that performs stunts and previews when an image file is loaded like overlapping images.

progressive image loading jquery, lazy loading with blurred image effect, progressive image flutter, progressive image loading example

A Simple and Easy Image Carousel Slider Plugin With Lazy Loading | square1

How to make use of it:

1. Include Interlace’s JavaScript and Stylesheet on the HTML page.

<link href="interlace.min.css" rel="stylesheet">
<script src="interlace.min.js"></script>

2. Prepare low-quality images of the original images and then insert them into the DIV element using the data interlacing property as shown below:

<div data-interlace-src="1.jpg"

3. Execute all uninitialized nest elements.


4. You can also define images in JavaScript and append them to any container element within the document.

var iImg ={
    interlaceSrc: "1.jpg",
    interlaceLow: "1.low.jpg"


5. Available options can pass an object to the new Interlace method:

var iImg ={

    // Original image file path.
    interlaceSrc: "1.jpg",

    // Low-quality image file path.
    interlaceLow: "1.low.jpg",

    // Toggle visibility of loading icon.
    interlaceTip: false,

    // Set title attribute to Interlace-element.

    // Set ALT attribute to Interlace-element.
    interlaceAlt: "data-interlace-alt"



Original image file path.

type: String / attribute-name: data-interlace-src / required


Low-quality image file path.

type: String / attribute-name: data-interlace-low


Toggle the visibility of the loading icon.

type: Boolean / attribute-name: data-interlace-tip / default: false


Set title attribute to Interlace-element.

type: String / attribute-name: data-interlace-title


Set ALT attribute to Interlace-element.

type: String / attribute-name: data-interlace-alt

Progressive Image Loading Effect, Interlace.js Plugin/Github

progressive image loading

See Demo And Download

Official Website(CodyWildtyto): Click Here

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

Related Posts


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…


How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…


Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Leave a Reply

Your email address will not be published. Required fields are marked *