Search the Community
Showing results for tags 'morphsvg loop'.
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 incorporated a loop for scrolling in leveraging ScrollMagic, and I can no longer seem to get the "fill" property for each of my SVG Paths. You can see the code I am struggling with below the first one. I have commented out the JS lines that are causing my error, it the morphing works correctly, but I can seem to find the "fill" elements for each of my paths so that I can pass them to the MorphSVG. Any help is appreciated and I'm sure this is a Newbie question, so I apologize in advance. with this codepen (below) with the error.