|Supported Layouts||fill, fixed, fixed-height, flex-item, nodisplay, responsive|
|Examples||See AMP By Example's amp-bodymovin-animation example.|
height attributes determine the aspect ratio of the animation embedded in responsive layouts.
<amp-bodymovin-animation layout="fixed" width="200" height="200" src="https://nainar.github.io/loader.json" loop="5" > </amp-bodymovin-animation>
|src||The path to the exported Bodymovin animation object. Must be
|loop (optional)||Indicates whether the animation should be looping or not. By default, this attribute is set to
|noautoplay (optional)||By default, an animation autoplays. If this attribute is added the video waits for an action to start playing.|
|renderer (optional)||By default, this component uses the SVG renderer, this uses a light version of the Bodymovin animation player. However, if developers feel that they need the full player and want to use an HTML renderer they may do so by specifying the
This attribute only accepts the values
|common attributes||This element includes common attributes extended to AMP components.|
Please see AMP Action Documentation for the actions available on
See amp-bodymovin-animation rules in the AMP validator specification.
You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.Go to Stack Overflow Found a bug or missing a feature?
The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.Go to GitHub