Hey guys, contemplating with Framer.
I'm trying to loop through an array of animation objects, and `.start()` them to reveal a panel, or '.reverse()' them to hide the panel.
runAnim = (animObj, isVisible) -> if isVisible animObj.start() else animObj.reverse()
btn.on Events.Click, -> panel.visible = !(panel.visible) debugger runAnim animObj, panel.visible for animObj in animations
Start works fine, however, the reverse does not.I'm manipulating the `y` and `opacity` properties.
Hey Nir Benita - you also have to start the reversed animation. The reverse() method doesn't automatically initiate an animation.
animA.start()animB = animA.reverse()animA.on Events.AnimationEnd, -> animB.start()
I thought of that but was too sure it's not the case. Ugh!