@d.reitzner/responsive-background-image

0.0.1 • Public • Published

responsive-background-image

This uses <source> or srcset to dynamically change the background image of a given element

<div data-responsive-background>
    <picture>
        <source ...>
        <img src="example.png" alt="Example img">
    </picture>
</div>

Bind it after init:

//TBD

Readme

Keywords

none

Package Sidebar

Install

npm i @d.reitzner/responsive-background-image

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

3.37 kB

Total Files

4

Last publish

Collaborators

  • d.reitzner