Building a smooth animated modal [Next.js, React Transition Group, GSAP, Typescript, TailwindCSS]

preview_player
Показать описание
Ugly modals are everywhere! In this video I’ll show you how to neatly animate modals or menus in and out of the DOM using React Transition Group, GSAP and TailwindCSS.

#javascript #react #gsap #pragmattic

🔗 Resources

🔖 Summary
- Install dependencies: npm i gsap @gsap/react react-transition-group @types/react-transition-group
- Add the modal markup inside Transition, including a clickable backdrop to dismiss the modal
- Animate using onEnter and onExit callbacks
- Add nodeRef and GSAP scope

🤝 Want help on a project?
Рекомендации по теме
Комментарии
Автор

Very nice!! Extremely useful, just started using GSAP again so perfect timing for this tutorial! Nice one Matt!!!

hannahharries
welcome to shbcf.ru