CSS @starting-style — Entry & Exit

Toggle @starting-style on and off, then Show/Hide each component. Entry uses the starting block; exit uses transition-behavior: allow-discrete on display.

Controls

Checking…
350ms

Live CSS recipe

With @starting-style enabled, entry fades/scales in. Disable it — the element pops in instantly while exit still animates via allow-discrete.

Live components

Each pattern pairs @starting-style (enter) with display … allow-discrete (exit). Try Show then Hide.

Toast
Saved successfully
Modal <dialog>

Confirm delete?

This action cannot be undone.

Dropdown
Tooltip

Exit animations defer display: none until opacity/translate finish — that is what allow-discrete on display (and overlay for dialogs) enables.