An open API service indexing awesome lists of open source software.

https://github.com/zephyrpersonal/vue-lazyload


https://github.com/zephyrpersonal/vue-lazyload

lazyload vue

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Tiny Vue Image Lazyload

## Install

```bash
yarn add tiny-vue-img-lazyload
```

## Usage

```js
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

```html

```

## Example

clone this repo and

```bash
yarn install
yarn run dev
```