Jump to content
GreenSock

JEANETTE

DrawSVGPlugin is not working as I spect with nextjs

Recommended Posts

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

carbon.png

See the Pen wvMaZBv?editors=1111 by janessa99 (@janessa99) on CodePen

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×