lazyLoadImageAction

An action to easily make images lazy loadable.

Demo

Scroll, scroll, scroll
Below is an image which will load just now
Testing

Usage

<script>
import { lazyLoadImageAction } from "svelte-legos";
</script>

<img use:lazyLoadImageAction data-src="https://source.unsplash.com/8n7ipHhI8CI" />