v-lazy-image
v2.1.1
Published
[](https://www.npmjs.com/package/v-lazy-image) [](https://www.npmjs.com/package/v-lazy-image) [ are required.
Props
| Name | Type | Default | Description |
| ---------------------- | ------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| src | String (*) | - | Image src to lazy load when it intersects with the viewport |
| src-placeholder | String | ' ' | If defined, it will be shown until the src image is loaded. Useful for progressive image loading, see demo |
| srcset | String | - | Images to be used for different resolutions |
| intersection-options | Object | () => ({}) | The Intersection Observer options object. |
| use-picture | Boolean | false | Wrap the img in a picture tag. |
Events
| Name | Description |
| ----------- | ------------------------------------------------------------ |
| intersect | Triggered when the image intersects the viewport |
| load | Triggered when the lazy image defined in src is loaded |
| error | Triggered when the lazy image defined in src fails to load |
