Important: this documentation is not applicable to your currently selected format ads!
Displays an AirBnB Bodymovin animation player.
<script async custom-element="amp-bodymovin-animation" src="https://cdn.ampproject.org/v0/amp-bodymovin-animation-0.1.js"></script>
<amp-bodymovin-animation> component embeds an AirBnB Bodymovin animation player, which renders an animation from JSON generated by Adobe After Effects.
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>
The path to the exported Bodymovin animation object. Must be
Indicates whether the animation should be looping or not. By default, this
attribute is set to
true. Values for this attribute can be:
or a number value. If a number is specified, the animation loops that number of
By default, an animation autoplays. If this attribute is added the video waits for an action to start playing.
Multiple renderers are supported and can be specified:
title attribute for the component to propagate to the underlying
<iframe> element. The default value is
"Airbnb BodyMovin animation".
This element includes common attributes extended to AMP components.
Plays the animation.
Pauses the animation.
Stops the animation.
currentTime of the animation to the specified value and pauses
Uses the given percentage value to determine the
currentTime of the animation
to the specified value and pauses animation.
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