Skip to content

Perspective-Software/svelte-image-imgix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

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