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

amp-story-desktop-one-panel background-blur Ensure img is loaded, no animation on landing #35132

Merged
merged 7 commits into from
Jul 9, 2021

Conversation

processprocess
Copy link
Contributor

@processprocess processprocess commented Jul 7, 2021

Checks that amp-img is loaded before calling animate_.

Otherwise animate_ can be called without the image data and the screen will render black:
https://user-images.githubusercontent.com/3860311/124771508-2dbd1c00-df09-11eb-9e0e-5b7d1263ae61.mp4

Also, does not animate when first landing on story. This provides a cleaner landing experience and prevents flaky diffs.

@amp-owners-bot
Copy link

amp-owners-bot bot commented Jul 7, 2021

Hey @gmajoulet, @newmuis! These files were changed:

extensions/amp-story/1.0/background-blur.js

@processprocess processprocess changed the title amp-story-desktop-one-panel background-blur Ensure img is loaded amp-story-desktop-one-panel background-blur Ensure img is loaded, no animation on landing Jul 9, 2021
extensions/amp-story/1.0/background-blur.js Outdated Show resolved Hide resolved
processprocess and others added 3 commits July 9, 2021 15:38
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.

3 participants