Miss any of our Open RFC calls?Watch the recordings here! »

@codin/cwc-picture

0.3.9 • Public • Published

Picture element

Simple web component for displaying images. Lazy loading on intersection and strategy for wrapping

see demo Codin web components

example

<cwc-picture cover>
 <source media="(min-width: 400px)" srcset="./high-res.jpg">
 <source srcset="./low-res.jpg">
</cwc-picture>

Install

npm i @codin/cwc-picture

DownloadsWeekly Downloads

3

Version

0.3.9

License

MIT

Unpacked Size

50.3 kB

Total Files

16

Last publish

Collaborators

  • avatar