
Building an accessible modal dialog on the native
How showModal() handles focus, Escape, and animation so you don’t have to.
Web Standards
Daily web platform news

How showModal() handles focus, Escape, and animation so you don’t have to.

Morph a button into a <dialog> by swapping view-transition-name inside startViewTransition().

Smooth entry and exit animations with @starting-style, allow-discrete, and View Transitions.

Hamburger menu built with <dialog>, minimal JS fallback, and smooth transitions.

Simpler dialogs with anchor-positioned close buttons.

Combining modern web APIs for seamless UI animations.

Why toast popovers can float above dialogs yet stay unreachable, and how to fix the top-layer trap.

Built-in layered UI with focus, top layer, and animations handled for you.

Learn CSS course updated with nesting, container queries, anchor positioning, and more.