GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06Backdrop dismiss fade — the opacity value drops to zero once a click outside the menu is registered

Once a click outside the open menu is registered, the opacity value decreases over a set duration until it reaches zero and the menu leaves the screen.

Best forClosing a typical right-click menu, closing a mobile long-press menu

isInside(rect, x, y)backdrop pointerdownopacity 1 → 0 fade
Backdrop dismiss fade — the opacity value drops to zero once a click outside the menu is registered
Open in a new tab

06 Backdrop dismiss fade — the opacity value drops to zero once a click outside the menu is registered — Measured area 88.409% · moving frames 8/23Original by GODRICH · SCSS and React ship in the zip · Context Menu UI: 9 Right-Click Menu Patterns

The post this demo lives in

Context Menu UI: 9 Right-Click Menu Patterns - preview of all 9 demosContext Menu UI: 9 Right-Click Menu PatternsOne menu position value is set from the clicked coordinate value, one flips its direction value near a screen edge, and See all demos in this post

If you like this effect - similar demos