Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Issue 2856223007: MD Settings: Shorten page fade transitions (Closed)

Created:
3 years, 7 months ago by michaelpg
Modified:
3 years, 7 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Shorten page fade transitions Expanding or collapsing a section takes 350ms, but fading the new content in and the old content out takes 500ms. This is a contributing factor to the overlap seen when closing a section, as the old section is still visible when the collapse animation has completed. Shortening the fade duration to match the expand/collapse animation makes that overlap much less likely to occur. It also makes the animations appear snappier, IMO -- if the page is still fading after expanding, it looks slugging. This re-implements the fade animations, rather than programmatically changing the neon-animated-pages' transition durations for the existing fade-in-animation/fade-out-animation. The latter is not possible due to https://github.com/PolymerElements/neon-animation/issues/209. R=dbeam@chromium.org BUG=716680 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2856223007 Cr-Commit-Position: refs/heads/master@{#469582} Committed: https://chromium.googlesource.com/chromium/src/+/32a9e92ea1f387e91a9f7b87e19ce48f3990404c

Patch Set 1 #

Total comments: 2

Patch Set 2 : git cl format --js #

Patch Set 3 : closure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -6 lines) Patch
M chrome/browser/resources/settings/animation/compiled_resources2.gyp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/animation/fade_animations.html View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/settings/animation/fade_animations.js View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_animated_pages.html View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_animated_pages.js View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
michaelpg
55 lines because of one hard-to-change constant in neon-animated-pages... but definitely a visual improvement. PTAL.
3 years, 7 months ago (2017-05-04 21:08:07 UTC) #3
Dan Beam
lgtm https://codereview.chromium.org/2856223007/diff/1/chrome/browser/resources/settings/animation/fade_animations.js File chrome/browser/resources/settings/animation/fade_animations.js (right): https://codereview.chromium.org/2856223007/diff/1/chrome/browser/resources/settings/animation/fade_animations.js#newcode18 chrome/browser/resources/settings/animation/fade_animations.js:18: {'opacity': '1'} fun fact: if you add a ...
3 years, 7 months ago (2017-05-04 22:46:37 UTC) #4
michaelpg
https://codereview.chromium.org/2856223007/diff/1/chrome/browser/resources/settings/animation/fade_animations.js File chrome/browser/resources/settings/animation/fade_animations.js (right): https://codereview.chromium.org/2856223007/diff/1/chrome/browser/resources/settings/animation/fade_animations.js#newcode18 chrome/browser/resources/settings/animation/fade_animations.js:18: {'opacity': '1'} On 2017/05/04 22:46:37, Dan Beam wrote: > ...
3 years, 7 months ago (2017-05-04 23:07:26 UTC) #6
Dan Beam
still lgtm
3 years, 7 months ago (2017-05-04 23:29:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2856223007/60001
3 years, 7 months ago (2017-05-05 01:58:49 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 03:09:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/32a9e92ea1f387e91a9f7b87e19c...

Powered by Google App Engine
This is Rietveld 408576698