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

Adjust entry animation for non-transition images #13133

Merged
merged 1 commit into from Jan 30, 2018

Conversation

cathyxz
Copy link
Contributor

@cathyxz cathyxz commented Jan 30, 2018

Allow the entire image to fade in along with the black background.

@@ -771,6 +771,8 @@ export class AmpLightboxViewer extends AMP.BaseElement {
anim.add(0.9, tr.setStyles(transLayer, {
opacity: tr.numeric(1, 0.01),
}), 0.1, EXIT_CURVE_);
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In QA Round 3 we decided that it was weird for the black background to fade in first. Originally, setting carousel opacity to 0 was implemented to avoid the transition image moving towards an image that already existed. If that transition is not happening, then we shouldn't set the carousel opacity to zero.

@cathyxz cathyxz merged commit 68e3066 into ampproject:master Jan 30, 2018
@cathyxz cathyxz deleted the feature/default-animation branch January 30, 2018 19:16
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
protonate pushed a commit to protonate/amphtml that referenced this pull request Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants