Jump to content
Search Community

Recommended Posts

17604_1494126626
Posted

Hi I am new to gsap and trying to get a simple animation with draw svg to work with no success. The plugin is loaded from the cdn. Any help would be greatly appreciated. Thanks in advance!

See the Pen OJQELxm by zurtkz (@zurtkz) on CodePen.

Posted

Welcome to the forum and thanks for being a Club member. ?

 

When you use a .from() tween, you're saying animate to the current value and start from some other value. In this case, you're saying animate from 100% to the current value which is already 100%. So it looks like nothing happened. You'll want to tween from 0 like this.

 

gsap.from(".PVWave", { duration: 3, drawSVG: 0 });

Hopefully that makes sense. Happy tweening.

:)

17604_1494126626
Posted

Yes makes sense! Thanks Craig for the speedy response. I will likely be back with more questions

  • Like 1

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.
×
×
  • Create New...