Amphtml: Animate-in of the rotated layer visible before the start

Created on 16 May 2019  路  11Comments  路  Source: ampproject/amphtml

Hi, I have a problem with APM story animation. I create a simple story with an image layer. But if I want to rotate the image the image is visible before animation starts.
It is possible to rotate the story layers? Or it鈥檚 not supported now?

http://prntscr.com/noqzg8

https://cutnut-tv.cdn.ampproject.org/c/s/cutnut.tv/amp/464fd4b2-f26e-4fd9-ab64-122bde29038f

Bug stories

All 11 comments

Triaging to @newmuis Feel free to re-assign 馃槃

The element is supposed to be positioned offscreen, but that's not working; either because of the rotation or because of scaling stuff we do internally. We should address this as an internal implementation detail when applying the first animation frame; the code as listed shouldn't have to change.

Hi, are there any updates here?

paging @newmuis for an update here. Cutnut asked about this in our partner meeting

Hi @nainar and @StebneRuslan, this is on our radar; hopefully we'll be able to get around to it soon! @StebneRuslan if you're willing to contribute a fix, we could walk you through what that might look like as well

/to @johanna08

/to @johannaperez

I was just looking at some other rotation-related stuff, and I wonder if we fail to take the transform-origin into account; if the origin is the center of the element, then how far we have to move it offscreen would be dependent on the size of the element

Hi, are there any updates about this issue?

@processprocess I believe you might have fixed this one?

This needs to be double checked and tested with elements of different heights and widths.
fly-in also has this problem in some aspect ratios #30790

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gmajoulet picture gmajoulet  路  3Comments

choumx picture choumx  路  3Comments

akshaylive picture akshaylive  路  3Comments

mkhatib picture mkhatib  路  3Comments

choumx picture choumx  路  3Comments