@d.reitzner/responsive-background-image
v0.0.1
Published
Uses <source> or srcset to dynamicly change the background image of a given element.
Downloads
1
Readme
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