tiny-vue-img-lazyload

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i tiny-vue-img-lazyload

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

161 kB

Total Files

11

Last publish

Collaborators

  • zephyr419