Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove vsync guards to fx presets #19197

Merged
merged 2 commits into from Nov 13, 2018
Merged

Remove vsync guards to fx presets #19197

merged 2 commits into from Nov 13, 2018

Conversation

nainar
Copy link
Contributor

@nainar nainar commented Nov 8, 2018

This fixes #19022 by ensuring that all updates to the animations are synchronous and not batched.

});
fxElement.initialTrigger = true;
});
const style = computedStyle(fxElement.getAmpDoc().win,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nainar with this change, we are assuming the element is laidout by the time the fx triggers which may or ma not be the case. I think we need to keep the mutateElement for the initial trigger.
a good test for this would be fly-in-left for an image that more than 3 viewport height down the page initially.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the change in the latest PR you are right. Was broken for one of the examples in article-fly-in.amp.html

@nainar nainar merged commit bb8dea7 into ampproject:master Nov 13, 2018
@aghassemi
Copy link
Contributor

@nainar Just remembered. Do we also call mutateElement after the transition ends? we would need to do that as well.

Enriqe pushed a commit to Enriqe/amphtml that referenced this pull request Nov 28, 2018
* Remove vsync guards to fx presets

* Add initial trigger guards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

amp-fx-collection parallax stuttering on scroll
4 participants