Lazy Image loader web element generated with Angular CLI version 9.1.1.
For demo click
- Add
script.js
to exiting project. - Use
<lazy-img></lazy-img>
width property ofsrc
widthwidth
heigthheight
for example
<lazy-img src="https://cdn.pixabay.com/photo/2019/06/08/21/23/women-4261014_960_720.jpg">
<span slot="header">Caption title here</span>
<span slot="caption">
Captions here
</span>
</lazy-img>
- Install
http-server
usingnpm
npm install --global http-server
- Run
http-server
on cmd or bash for a dev server.
http-server
- Navigate to
http://127.0.0.1:8080/
.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.