0.0.1 • Published 7 years ago

lari-lazy-image v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Installation

npm install lari-lazy-image

Usage

<template>
    <div>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis, reprehenderit?.</p>
        <img 
            src="/{your small image}.jpg" 
            is="lazy-image"  
            width="{width}" 
            height="{height}" 
            alt="Alt tekst" 
            small="/{your small image},jpg" 
            normal="/{your normal image}.jpg"
        >
    </div>
</template>
<script type="text/javascript">
    import { LazyImage } from 'lari-lazy-image'; 
    export default {
        components: {
            LazyImage
        }
    }
</script>