/webcomponents/lazy-img/README.md

https://github.com/fluster/deckdeckgo · Markdown · 28 lines · 17 code · 11 blank · 0 comment · 0 complexity · d74b5943bb7783f60dc05ffca2b3d949 MD5 · raw file

  1. [![npm][npm-badge]][npm-badge-url]
  2. [![license][npm-license]][npm-license-url]
  3. [npm-badge]: https://img.shields.io/npm/v/@deckdeckgo/lazy-img
  4. [npm-badge-url]: https://www.npmjs.com/package/@deckdeckgo/lazy-img
  5. [npm-license]: https://img.shields.io/npm/l/@deckdeckgo/lazy-img
  6. [npm-license-url]: https://github.com/deckgo/deckdeckgo/blob/main/webcomponents/lazy-img/LICENSE
  7. # DeckDeckGo - A dead simple Web Component to lazy load images
  8. This Web Component is a dead simple component to lazy load images which was developed for the project [DeckDeckGo].
  9. It leverages the IntersectionObserver API to lazy load images and also allows you to trigger "manually" their loading.
  10. ## Table of contents
  11. - [Getting Started](#getting-started)
  12. - [License](#license)
  13. ## Getting Started
  14. To get started with this Web Component, have a look to its [documentation](https://docs.deckdeckgo.com/?path=/story/components-lazy-image--lazy-image).
  15. ## License
  16. MIT © [David Dal Busco](mailto:david.dalbusco@outlook.com) and [Nicolas Mattia](mailto:nicolas@nmattia.com)
  17. [deckdeckgo]: https://deckdeckgo.com