1.0.6 • Published 7 years ago

cl-progressive-image v1.0.6

Weekly downloads
-
License
NONE
Repository
-
Last release
7 years ago

Progressive image loading

A way to display large images on slow connections.

This is a vue component for loading and displaying images. It works in two steps. Blury small image is displayed instantly. When large image is fully loaded it fades in instead of small blury image. Consider slow connections. It doesn't block UI when image is being loaded.

Installation

npm install cl-progressive-image --save

Usage example

<template>
  <div>
    <ProgressiveImage srcSmall="https://cdn-images-1.medium.com/freeze/max/27/1*sg-uLNm73whmdOgKlrQdZA.jpeg?q=20" srcLarge="https://cdn-images-1.medium.com/max/1800/1*sg-uLNm73whmdOgKlrQdZA.jpeg" />
  </div>
</template>

<script>
import ProgressiveImage from 'cl-progressive-image'

export default {
  name: 'ParentComponent',
  components: {
    ProgressiveImage
  }
}
</script>

Parameters

ParameterDescription
srcSmallsmall image url - to load fast and show blured placeholder
srcLargelarge image url - image to display after progressive load finished

Meta

coolemur@gmail.com

No license required.

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago