@codin/cwc-picture
TypeScript icon, indicating that this package has built-in type declarations

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>

Package Sidebar

Install

npm i @codin/cwc-picture

Weekly Downloads

0

Version

0.3.9

License

MIT

Unpacked Size

50.3 kB

Total Files

16

Last publish

Collaborators

  • _odin_