2min chapter

Syntax - Tasty Web Development Treats cover image

Modals, Popups, Popovers, Lightboxes

Syntax - Tasty Web Development Treats

CHAPTER

How to Use Javascript API to Open Dialogs

You just simply use the open attribute and pop a Translate x or translate y value on it And it animates itself in that's nice. That's So cool that you don't have to add There are like two classes usually with animations what you have to do is you click ityou add like a In-out opening class  and then you like position it off screen and then you add an open class Like The next millisecond and then it will give you your animation.

00:00

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