Motion· 13 of 25

13 of 25

Anchor a popover’s motion to its trigger

If an anchored popover scales, put the transform origin on the edge facing the trigger. Recompute it after a collision changes placement.

Do220ms
Don’t220ms

Dotransform-origin: the trigger grows from its trigger — cause meets effect

Don’ttransform-origin: center grows from center — detached from its button

The dot marks the origin — only one menu starts where you clicked

Reduced motion: end states only, as your setting asks.

Before you ship

  • Does the origin stay on the correct edge when the menu flips?
  • Does it line up with an off-center trigger?
  • Would a simple fade work better for a dialog without an anchor?

Next

Tune entrance and exit separatelyMotion · 14 of 25J