nico-lazy-image

1.2.7 • Public • Published

nico-lazy-image

a medium like progressive image loading effect for reactjs

Installation

$ npm install --save nico-lazy-image

Getting started

import LazyImage from 'nico-lazy-image'

<LazyImage
    source={item.src + '?crop/w/200/h/180'}
    placeholder={item.src + '?crop/w/20/h/18'}
    width={200}
    height={180}
    placeholderWidth={20}
    placeholderHeight={18}
    >
    {({ source, alt }) => <img src={source} alt={alt} />}
</LazyImage>

Another repo for js plugin users: progressive-image-loading

Readme

Keywords

Package Sidebar

Install

npm i nico-lazy-image

Weekly Downloads

66

Version

1.2.7

License

ISC

Unpacked Size

24 kB

Total Files

10

Last publish

Collaborators

  • nicholasxjy