Hi!
I'm working on a custom plugin that is project specific. Basically, I created a class that represents an SVG arc and the plugin will tween the rotation of the arc around a point and change its thickness etc.
Everything works perfectly except when I try to pass in an array of targets, in which case only the first element in the array is tweened, despite init() being called and run successfully. I've spent all day trying to figure this out and I can't make any headway, and I was hoping someone here had seen something similar and could give me some insight.
I copied the code over to a codepen to see what I'm talking about, but it is probably easier to just to clone the repo: https://github.com/tysmithnet/gsap-svg-arc-plugin
Just load up index.html
Key files:
SvgArc.js - class abstracting the svg arc, pretty much just knows how to create an SVG path
gsap-svg-arc-plugin.js - the gsap plugin
index.html - test file illustrating the issue
Thanks for looking!
T