responsive

Description

Updates the src with the size of the parent element and triggers a resize event for subsequent resizing.

Parameters
Name Type Description
steps number | Array.<number>

The step size in pixels or an array of image widths in pixels.

Returns
Examples

NOTE: The following is in React. For further examples, see the Packages tab.

<AdvancedImage cldImg={img} plugins={[responsive({steps: [800, 1000, 1400]})]} />