A walkthrough of building native HTML popovers using the Popover API with no JavaScript. Covers the popover attribute, popovertarget wiring, CSS anchor positioning for smart placement with flip fallback, and smooth open/close animations using CSS transitions with @starting-style and transition-behavior: allow-discrete to animate between display:none and display:grid states.

16m watch time
8.4K Impressions