Description Displays an Imgur post.
Required Script <script async custom-element="amp-imgur" src="https://cdn.ampproject.org/v0/amp-imgur-0.1.js"></script>
Supported Layouts fill, fixed, fixed-height, flex-item, nodisplay, responsive

Behavior

This extension creates an iframe and displays an imgur post.

Example:

<amp-imgur data-imgur-id="f462IUj"
    layout="responsive"
    width="540"
    height="663"></amp-imgur>

Attributes

data-imgur-id (required)

The ID of the Imgur post.

width (required)

The width of the Imgur post.

height (required)

The width of the Imgur post.

common attributes

This element includes common attributes extended to AMP components.

Validation

See amp-imgur rules in the AMP validator specification.