1.0.0 • Published 3 years ago

vue-lazzy-image v1.0.0

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

Vue Lazzy Image Component

npm install vue-lazzy-image

How to use lib

import CoreLazyLoading from 'vue-lazzy-image'
...
components: {
  CoreLazyLoading,
},

Template

<CoreLazyLoading>
    <img src="your_image_link" class="your_class_name" alt="your_alt_name" />
</CoreLazyLoading>

Component props

Parameters, which you can pass to vue-lazzy-image component.

PropertyTypeDescription
skeletonbooleanVisibility of your skeleton
placeholderobjectThe placeholder which will be provided has src and class in its properties. The placeholder will be the image before loading the main one
optionsobjectOptions of IntersctionObserver constructor for your images' parent element

Options

<CoreLazyLoading :placeholder="{ class: 'className', style: 'height: 200px;' }">
  <img
    src="your_image_link"
    class="your_class_name"
    alt="your_alt_name"
  />
</CoreLazyLoading>

Visible Skeleton

<CoreLazyLoading :placeholder="{ class: 'className', style: 'height: 200px;' }" :skeleton="false">
  <img
    src="your_image_link"
    class="your_class_name"
    alt="your_alt_name"
  />
</CoreLazyLoading>
1.0.0

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.0.10

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago