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
Polish and optimize desktop background #12629
Conversation
21b9677
to
16cd79e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few questions.
LGTM overall
background-size: cover !important; | ||
background-color: transparent !important; | ||
background-position: center center !important; | ||
will-change: opacity, z-index !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we trying to animate opacity?
last time we did this, opacity animation + page movement tend to get a little janky. please check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed as working, issues were caused by lack of transition sync/two transitions at the same time.
right: 0 !important; | ||
bottom: 0 !important; | ||
left: 0 !important; | ||
top: -150px !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blur bleed :)
Ignores images hidden by media query when finding background source. In some cases, hidden images would be loaded by the background, causing a delay between correct image load and background image load.
Fixes blur bleed.
Sets background color to be the same as the
amp-story-page
element in case no image is present or when it fails to load.Waits for image to load before swap. On timeout, it will show the background color.
Previous changes allow for crossfade transition to be re-enabled, with some changes in behavior.