17604_1494126626 Posted June 2, 2022 Posted June 2, 2022 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.
PointC Posted June 2, 2022 Posted June 2, 2022 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 June 2, 2022 Author Posted June 2, 2022 Yes makes sense! Thanks Craig for the speedy response. I will likely be back with more questions 1
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