Steps to reproduce:
Note: when doing this with a Story that was previously already saved then it works.
I can reproduce this. Somehow the animate-in-after information is lost.
The attributes are updated here:
This is likely the first place to investigate.
Oh, I think this issue is actually a bit bigger...
In wrapBlocksInGridLayer we added the animation attributes to a separate element to avoid conflicts.
However, the elements with the IDs (which are used for animate-in-after are children of that said animation element. That means it can't ever work.
Looking into this.
Notes from yesterday's discussion with @swissspidy:
Since the fix would mean markup change then this means that we would need to deprecate _all the available_ blocks (that are wrapped with Grid Layer) in AMP Stories, this means deprecation and migration for both custom and core blocks.
An alternative could be moving to render the blocks in PHP instead.
An alternative could be moving to render the blocks in PHP instead.
That might also cause block invalidation and thus require deprecations. Would need some testing.
Also, we don't probably want to start updating and keeping track of changes in core blocks to replicate these in PHP.
Just deprecating blocks seems to be the more reasonable option.
Instructions for testing:
Verified in QA