Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 558 Bytes

imgSrc-API.md

File metadata and controls

17 lines (11 loc) · 558 Bytes

The imgSrc directive is a responsive extension of the HTML src attribute and can be used on any tag in the markup

<div>
  <img src="default.png" src.xs="xsmall.png"/>
</div>

imgSrc Options

imgSrc takes one string argument, and alters its host's src attribute as necessary when breakpoints are activated. The initial value will be used as the default and fallback when a responsive alias is not defined