Page MenuHomePhabricator

Improve profile menu animation
ClosedPublic

Authored by epriestley on Jan 23 2016, 10:27 PM.
Tags
None
Referenced Files
F13224692: D15098.diff
Sun, May 19, 10:10 AM
F13203924: D15098.diff
Wed, May 15, 12:13 AM
F13186577: D15098.diff
Sat, May 11, 3:43 AM
Unknown Object (File)
Tue, May 7, 7:01 AM
Unknown Object (File)
Sat, May 4, 5:08 AM
Unknown Object (File)
Fri, May 3, 5:00 AM
Unknown Object (File)
Fri, May 3, 1:53 AM
Unknown Object (File)
Thu, Apr 25, 10:23 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.)