Sabil UI

Search documentation

Search for a command to run...

Motion · Interaction

Popover Origin

Popovers grow out of the element that opened them. Modals are the exception: they stay centered.

origin: center

Rename
Duplicate
Archive

origin: top left

Rename
Duplicate
Archive

Specs#

Propertytransform-origin: var(--radix-*-transform-origin)
Duration150–200ms
Easing--ease-out
Fromscale 0.95, opacity 0
Built withCSS only

Guidelines#

Use for

  • Dropdowns, popovers, tooltips, selects
  • Anything anchored to a trigger

Avoid

  • transform-origin: center on anchored overlays
  • Origin-aware scaling on dialogs