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