1.1.22 • Published 6 years ago

@appstractdk/as-progressive-image v1.1.22

Weekly downloads
8
License
ISC
Repository
-
Last release
6 years ago

as-progressive-image

Component for loading images progressively.

Usage

The following HTML is needed for the progressive loading to work:

<div class="progressive-image-container" data-srcset="" data-sizes="" data-full-resolution-image="">
    <img src="" class="preview" alt="image" />
</div>

<img> sourse should contain a link to a small preview image(e.g. 20px width highly-compressed jpeg). The actual full-resolution image source should be defined under data-full-resolution-image attribute. IMPORTANT: all of the images have to have an exact same aspect ratio.

*You are also welcome to use HTML5 image srcset and sizes attributes.

1.1.22

6 years ago

1.1.21

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago