Transition a `<dialog>` open with Tailwind CSS
07:11 26 Apr 2026

I want to transition a modal

element when it is opened by sliding it onto the screen. However, I can only get it to transition out, and not in. I've read the section on MDN for animating dialogs and think I'm following it correctly, but perhaps I'm missing something.

Here's the snippet:




  

Hello there

html tailwind-css