Skip to content

openforge/web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Official Website | Opportunities | Facebook

Leading By Example.

Working with the latest technologies, designing the best products, and sharing our knowledge with the world wide community.

lazy-img

Built With Stencil

What is it?

lazy-img is a web component built with Stencil that allows you to lazy load images as the user scrolls them into the viewport. On supported browsers (Chrome and chrome based browsers, Firefox and Edge) it uses IntersectionObserver to accomplish this functionality. For Safari and IE it simply falls back to setTimeout.

Usage

To use this component in your app, no matter what framework you are using, follow these steps:

  • pop this script tag <script async defer src=''></script> into your index.html

API

Properties:

Examples

 <st-img src="https://madeby.google.com/static/images/google_g_logo.svg" alt="google"></st-img>

About

Open source, shareable and reusable web components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published