Skip to content

zephyrpersonal/vue-lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Vue Image Lazyload

Install

yarn add tiny-vue-img-lazyload

Usage

import Vue from 'vue'
import TinyVueImgLazyload from 'tiny-vue-img-lazyload'

Vue.use(TinyVueImgLazyload, {
  onLoadClassName: 'loaded' // when image loaded, the className will be attach to the dom
})

then in your vue component

<img v-lazy-load:src="your-img-link" />

Example

clone this repo and

yarn install
yarn run dev

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published