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

https://github.com/peterroe/vue-img-lazy-tiny

A Tiny img lazy load vue directive
https://github.com/peterroe/vue-img-lazy-tiny

lazy-load-img vue-directive vue3

Last synced: 9 months ago
JSON representation

A Tiny img lazy load vue directive

Awesome Lists containing this project

README

          

## vue-img-lazy-tiny

A Tiny img lazy load `vue directive`



## Usage

Install it with `npm` or other package manager

```shell
$ npm install vue-img-lazy-tiny
```

Register vue directive

```ts
import vilt from 'vue-img-lazy-tiny'

createApp(App)
.use(vilt) // install vilt
.mount('#app')
```

Use it in your template, your image will be lazy loaded.

```html


img

```

## Preview

The directive will provide a sheild element to cover the original image, and a loading spinner.