Is it possible to have multiple layers in an animation function? Only the last one works!
I don't believe so - one animation per layer as far as I can tell and then you can call all three in your click event
okay and to reverse all these animations?
Gregory Dean Hall the docs are your friend: http://framerjs.com/docs/#animation.reverse
yeah but if i have a stack of layers then reverse animation wont work. Probably have to create an array of a different states
You can't pass an object literal with three keys all called 'layer' all keys in an object literal must be unique
okay so should rename them them. Ill try it
I doubt that will work because I don't think that function will be expecting whatever you name them. It's probably expecting an object with a layer and a properties key, nothing more.
it seems like bad practise for m to make all those animations and then manually reverse them
Why not make a function and put 3 separate animations in and call the function instead playing the animation...
Isaac Weinhausen can you link to your module? I'm away from my computer atm
Check out these modules. I wrote them to handle multiple animations concurrently and sequentially. I haven't implemented reverse() yet, but it's on the backlog. https://github.com/isaacw/framer-animation-collections