thom4parisot / Imager.jsx

A React component for responsive images in desktop and mobile browsers. Featuring Imager.js.
https://npmjs.com/imager.jsx
MIT License
32 stars 7 forks source link

background-src property #1

Closed thom4parisot closed 9 years ago

thom4parisot commented 9 years ago

The use case is to deal with responsive background images:

<ResponsiveImage
 background-src="http://placehold.it/{width}"
 className="responsive-image">
  <h2>Some cool title</h2>
</ResponsiveImage>

The rendered element would be a <div /> instead of an <img />.