Page MenuHomePhabricator

Improve profile menu animation
ClosedPublic

Authored by epriestley on Jan 23 2016, 10:27 PM.
Tags
None
Referenced Files
F14053455: D15098.diff
Fri, Nov 15, 3:46 PM
F14040448: D15098.diff
Mon, Nov 11, 10:21 AM
F14024314: D15098.diff
Thu, Nov 7, 8:08 AM
F13987343: D15098.id36452.diff
Mon, Oct 21, 8:52 AM
F13987342: D15098.id36453.diff
Mon, Oct 21, 8:52 AM
F13985772: D15098.diff
Sun, Oct 20, 10:48 PM
F13956706: D15098.id36453.diff
Oct 14 2024, 6:49 AM
Unknown Object (File)
Oct 2 2024, 9:21 AM
Subscribers
None

Details

Reviewers
chad
Commits
Restricted Diffusion Commit
rP9ecd82a9930c: Improve profile menu animation
Summary

The text sliding around feels a bit jank to me. Instead, here's an attempt at a three-part effect:

  • Fade out the content of the menu (first quarter of the animation).
  • Shrink the menu (half the animation).
  • Fade the menu content back in (final quarter).

This isn't perfect, but feels less weird to me since the text doesn't dance?

Test Plan

clickey clickey

Diff Detail

Repository
rP Phabricator
Branch
xition1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10291
Build 12530: Run Core Tests
Build 12529: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Improve profile menu animation.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Not at all attached to this if you like the old one or have another idea to try.

epriestley edited edge metadata.
  • Regen celerity map properly to fix build failure.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 23 2016, 10:37 PM

doesn't feel as smooth but the appear/disappear works well.

Ideally I'd like to fade the text but not the icon, transition the icon, then fade the text back in, since the most-janky part to me is the text jumping from beside to below. I think that would need a bunch of additional rules/states for the icons, though. I wasn't able to get it anywhere close to working without doing a ton of extra work, and ran into some weird bugs (e.g., opacity on an animation not affecting text-overflow: ellipsis).

This revision was automatically updated to reflect the committed changes.

Sooooo 200px profile photos? I think that's simple to do now?

In PhabricatorFileThumbnailTransform, change this block:

id(new PhabricatorFileThumbnailTransform())
  ->setName(pht("Profile (100px \xC3\x97 100px)"))
  ->setKey(self::TRANSFORM_PROFILE)
  ->setDimensions(100, 100)
  ->setScaleUp(true),

...to 200s or 400s or 800s or whatever. I think that's it.

(We should be using background: 100% and such everywhere after the last time we bumped this up, so there should be no other meaningful changes required, I think.)