svelte-image-imgix Svelte Themes

Svelte Image Imgix

Viewport aware lazy loading imgix images for Svelte

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.

Documentation & Demo

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

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes