Defines CSS rules for a page’s repsonsive background image
Parameters:
Name | Type | Description |
---|---|---|
src | string | Image filepath |
Returns:
- Type:
string
CSS
Example
// In an Eleventy template
`${this.responsiveImage(src)}`
Members
(inner) metadata :Promise.<Object>
Transform images from Cloudinary using Eleventy’s Image plugin
Type:
Promise.<Object>
Methods
(inner) sourceAttr(imageFormat) → {string}
Defines markup for a source element
Parameters:
Name | Type | Description |
---|---|---|
imageFormat | Array.<Object> | From Eleventy Image |
Returns:
- Type:
string
HTML