You could just use the attribute open and so I posted a code pen in here um That shows you adding animation to a dialogue via css animations using just animation. They have an example for closing it, but oddly enough closing it is Harder for some reason because you do need to add the class When you want to animate it on hiding you have to do it with a class. And none of it necessarily feels incredible some of it does feel pretty good Um, but there's definitely opportunities here to make something kind of interesting.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode