JEANETTE Posted June 17, 2022 Share Posted June 17, 2022 Hi just joined to club GreenSock and I'm trying to make animation with DrawSVGPlugin ,following steps of codepen example, and Nextjs. The SVG renders for 1 second then it disappears. I attach a image with the code I have See the Pen wvMaZBv?editors=1111 by janessa99 (@janessa99) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted June 18, 2022 Share Posted June 18, 2022 I'm not sure I understand your question, @JEANETTE. It looks like it's working the way I'd expect in that CodePen. Am i missing something? One thing that looked odd to me is that you created the timeline OUTSIDE of your useEffect(). I think it's best-practice to put that inside. Can you please provide a very clear minimal demo and elaborate on the problem and explain how we can reproduce it? Link to comment Share on other sites More sharing options...
JEANETTE Posted June 23, 2022 Author Share Posted June 23, 2022 It is working now. thanks 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