Greetings!
I'm using Blakes clever method of using a mouse object to update a modifier function (
See the Pen 4160082f5a86a3cd0410fb836a74fa68 by osublake (@osublake) on CodePen
), but in my case I have multiple targets. It feels like a pretty common use case, so I assumed there's a good practise to do it.
In the example I want the boxes to follow the mouse movement depending on their respective index in the collection. The pen works, but I wonder if there's
Funny. I actually asked about being able to pass in indexes to a modifier functions, but that idea only made it to function-based values. https://greensock.com/forums/topic/14558-feature-request-wrap-values-modulo/?p=63200 I'm pretty sure your going to need some type of loop here, unless there's some super crazy es6 way of destructuring it. I know all the cool kids are using "let" and "const" statements nowadays, and here it actually works out because "let" creates a new scope on each iteratio