Trying to target a layer state used in a loop. Adding the state in the loop creation and trying to animate it when clicking on another layer outside the loop. Can't seem to make the connection.
Interesting work! The problem with the approach you took is that the moveThisStuff variable only references one layer an the end of your loop. I've updated you project to make it work and added some comments to clarify: http://share.framerjs.com/quge0qk0imsu/
Hope this makes sense, please let me know if anything is unclear!
Thanks so much Niels. So if I wanted to trigger multiple layers would I write like this?
stuffToMove.push(layerx, layery, layerz)
the .push essentially adds it to the outer array each time it is created?