Jump to content
Search Community

Complex SVGMorph with loop called from Tween Function

phoenixwebb test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have a for loop that I'm using to morph two complex SVGs. This animation will morph several paths to other paths and return the color of each path. This piece works very well. However, I need to be able to call this function on ScrollMagic. The problem I face is that I cannot figure out how to execute the "for loop" within the tween. I'm basically trying to combine my codepen  (below)

See the Pen aEKXOv by phoenixwebb (@phoenixwebb) on CodePen

 

with this codepen (below)

 

I know this is probably very easy, but I just can't seem to figure this out. Can anyone please help? 

See the Pen xOoOyv by GreenSock (@GreenSock) on CodePen

 


 

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