<Layzily
src="https://high-res-image.jpg"
alt="I'm lazy"
actual={({ imageProps }) => <img alt={imageProps.alt} {...imageProps} />}
fallback={({ imageProps, ref }) => <img ref={ref} alt={imageProps.alt} src="https://low-res-image.jpg" />}
/>
Simple lazy-loading using the Intersection Observer API
License
bdeloeste/layzily
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple lazy-loading using the Intersection Observer API
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published