DEV Community

Cover image for Make modals disappear automatically with this JS trick! ✨
Abdullah Al Masud
Abdullah Al Masud

Posted on

Make modals disappear automatically with this JS trick! ✨

Make modals disappear automatically with this JS trick!
→ 1000ms = 1 second ⏱️
→ Clean UX ✅
→ No extra libraries 🚀

Perfect for notifications.

Top comments (0)