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.
npm i svelte-image-imgix -D
Enjoy:
<script>
import { Image } from 'svelte-image-imgix'
</script>
<Image src="https://example.imgix.net/myimage.jpg" />
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