An open API service indexing awesome lists of open source software.

https://github.com/arnoldfederis/progressive-image-lazyload.js

Progressive image with Lazyload
https://github.com/arnoldfederis/progressive-image-lazyload.js

javascript lazyload lazyload-images optimization progressive-image-loading

Last synced: 2 months ago
JSON representation

Progressive image with Lazyload

Awesome Lists containing this project

README

          

## Progressive Image JS

![Progressive Image JS](https://i.imgur.com/o4aKBEH.png)

[Demo](https://arnoldfederis.github.io/progressive-image-lazyload.js)

### Progressive image with Lazyload

### Install in `npm` or `yarn`

```
$ npm install progressive-image-lazyload.js

$ yarn add progressive-image-lazyload.js
```

### How to use

* `HTML` markup

```html




progressive-image-lazyload

progressive-image-lazyload

```

* In `HTML` put this line of code inside your `` tag

```html

```

* In `JavaScript` and `SCSS` using npm or yarn

```scss
/* SCSS */
@import "~progressive-image-lazyload.js/src/scss/progressive-image";
```

```javascript
/* JavaScript */
import 'progressive-image-lazyload.js'
```

* `data-thumb` this is where you set your small image.
* `data-src` this is where you set your large image.