Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tiny-vue-img-lazyload

zephyrpersonal19MIT1.0.1

Install

vue, lazyload, vue2, vue-directive, raf, performance

readme

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