svelte-image-imgix
v1.0.10
Published
Viewport aware lazy loading imgix images for Svelte
Downloads
71
Readme
svelte-image-imgix
Lazy loading images from Imgix using svelte-waypoint. Also heavily inspired by svelte-image. Also works with Unsplash as long as they're using Imgix.
Installation
npm i svelte-image-imgix -D
Enjoy:
<script>
import { Image } from 'svelte-image-imgix'
</script>
<Image src="https://example.imgix.net/myimage.jpg" />
Development
npm run dev
will start a local dev server on localhost:5000
Navigate to http://localhost:5000/svelte-image-imgix
to see the docs.
Thanks @svelte-docs