AmpAnim

AmpAnim class

A runtime-managed animated image, typically a GIF.

The AmpAnim type exposes the following members:

Constructors

NameDescription
AmpAnim(width, height)Initializes a new instance of the AmpAnim class

Properties

NameDescription
required_scriptRequired script that muct be added to head section.
attributes
fallback
placeholder
srcSimilar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file
altA string of alternate text, similar to the alt attribute on img.
is_validIndicates whether this image is valid of AmpImage.
attributionA string that indicates the attribution of the image.

Methods

NameDescription
to_amp_html()
to_html()

See Also