2.0.1 • Published 4 years ago

@asarfara/vue-lazy-image v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

2.0.0

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago