Lozadaa / progressive-img-loader

A very simple and beautiful gem (gem sounds better than library but it's the same) to add preloader blur thumb to the images 🖼

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Progressive Image Loader

Made working at

A beautiful effect to preload images, made with love <3

NPM JavaScript Style Guide

Install

npm install --save progressive-img-loader

OR

yarn add progressive-img-loader

Usage

import React, { Component } from 'react'
import ImageLoader from 'progressive-img-loader'

function ExampleComponent(){
    return (<ImageLoader src={"original-image.png"}
                         srcPreview={"thumb-img.png"}
                         alt={"Alt attribute"} />);
}

License

MIT © Lozadaa

About

A very simple and beautiful gem (gem sounds better than library but it's the same) to add preloader blur thumb to the images 🖼


Languages

Language:JavaScript 60.0%Language:HTML 35.1%Language:CSS 4.9%