Ritik Posted November 2, 2023 Share Posted November 2, 2023 (edited) I followed this gsap forum thread and this comment by @rodrigo. Is this the way to animate on mount events? URL to stackblitz example (my code pen got locked ) See the Pen App.js by edit (@edit) on CodePen Edited November 2, 2023 by Ritik Stackblitz url was not showing earlier Link to comment Share on other sites More sharing options...
Rodrigo Posted November 2, 2023 Share Posted November 2, 2023 Hi, I think React Transition Group is the best way to do that. This simple Modal Demo should provide a solid starting point: https://stackblitz.com/edit/vitejs-vite-vlpbvk?file=src%2FApp.jsx,src%2FModal.jsx Hopefully this helps. Happy Tweening! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now