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

02Dialog focus trap — a modal confining its tab order to a recomputed range

Once a modal opens, the list of focusable elements inside it is recomputed and the tab order is confined to that range, so moving past the last element wraps the focus value back to the first.

Best forConfirmation modals, checkout or login popups

[data-f]preventScroll--i
Dialog focus trap — a modal confining its tab order to a recomputed range
Open in a new tab

02 Dialog focus trap — a modal confining its tab order to a recomputed range — Measured area 20.114% · moving frames 15/23Original by GODRICH · SCSS and React ship in the zip · Micro Interactions: 9 Essential UI Patterns

The post this demo lives in

Micro Interactions: 9 Essential UI Patterns - preview of all 9 demosMicro Interactions: 9 Essential UI PatternsMicro interactions: One toast recomputes its dismiss time from its stack order; one compares each heading's viewport ove See all demos in this post

If you like this effect - similar demos