2.0.1 • Published 5 years ago

@asarfara/vue-lazy-image v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Vue Lazy Image

A Vue.js component to load an image automatically when it enters the viewport.

Usage

yarn add @asarfara/vue-lazy-image

Or

yarn add @asarfara/vue-lazy-image

Note: You'll need to install the w3c Intersection Observer polyfill in case you're targeting a browser which doesn't support it

You can register vue-lazy-image globally:

import Vue from 'vue'
import VueLazyImage from '@asarfara/vue-lazy-image'

Vue.component('vue-lazy-image', VueLazyImage);

Define your own src and placeholder images

<template>
  <vue-lazy-image
      src="example/assets/images/map.jpg"
      placeholder="example/assets/images/placeholder.gif"
  />
</template>
2.0.1

5 years ago

2.0.0

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago