So this is my code, in the body tag, as specified in the docs :
<amp-animation layout="nodisplay" trigger="visibility">
<script type="application/json">
[
{
"selector": ".shape-3",
"duration": 1000,
"delay": 0,
"keyframes": "buildInKeyframes",
"fill": "both",
"direction": "normal"
},
{
"selector": ".shape-3",
"duration": 1000,
"delay": 1200,
"keyframes": "buildOutKeyframes",
"fill": "both",
"direction": "normal"
}
]
</script>
</amp-animation>
( In head tag i have the keyframes defined with tags style amp-custom ) I have a div with class="shape-3" and i want to animate it with the first animation, and after it finishes, animate with the second animation. The problem is that