0.2.3 • Published 7 years ago

vue-lazyimg v0.2.3

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

Vue-LazyImg

A tiny and stable lazyload plugin for Vue.

For Vue 1.x, please use npm install vue-lazyimg^0.1.0 to install vue-lazyimg.

For Vue 2.x, use npm install vue-lazying.

Introduction.

<body>
  <!-- Load image and set to 'src'. -->
  <img v-lazy="image1">

  <!-- Load image and set to 'background-image'. -->
  <div v-lazy-bg="image2"></div>
</body>
import Vue from 'vue'
import LazyImg from 'vue-lazyimg'

Vue.use(LazyImg) 

const Root = new Vue({
  el: 'body',
  data: {
    image1: 'link-to-my-awesome-background-01.jpg',
    image2: 'link-to-my-awesome-background-02.jpg'
  }
})

License.

© 2016 LancerComet. MIT License.

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago