1.4.6 • Published 6 years ago

vue-lazy-images v1.4.6

Weekly downloads
46
License
MIT
Repository
-
Last release
6 years ago

vue-lazyload-images

npm Build Status Coverage Status npm

A plugin of lazy-load images for Vue2.x

Support images lazyload in window or build-in element.

Demo

Demo

Installation

npm

$ npm install vue-lazy-images

or

script

<script src="dist/VueLazyImages.js"></script>

Usage

Entry.js

import Vue from "vue"
import VueLazyImage from "vue-lazy-images";
Vue.use(VueLazyImage)

Template

<lazy-image 
    :src='url'
    :img-class='string'  //or :img-class="['classname1','classname2']"
    :placeholder='url of placeholder or loading image'  
/>

Options

js.use(VueLazyImage,options)

keydescriptiondefaulttype
offsetoffset distance for pre-loading0Number
eventsevents that you want parentNode listen for'scroll', 'wheel', 'mousewheel', 'resize', 'animationend', 'transitionend', 'touchmove'Array
throttlespacing interval of continuous calling0(ms)Number
debounceidle time between two actions0(ms)Number
1.4.6

6 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.0.0

7 years ago