https://github.com/zephyrpersonal/vue-lazyload
https://github.com/zephyrpersonal/vue-lazyload
lazyload vue
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zephyrpersonal/vue-lazyload
- Owner: zephyrpersonal
- Created: 2018-04-17T12:01:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T06:21:06.000Z (about 8 years ago)
- Last Synced: 2025-03-05T01:35:39.595Z (over 1 year ago)
- Topics: lazyload, vue
- Language: JavaScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```