Guys, I can't get the pop-in part to work right after the pop-out for every individual element. They only pop in after all the elements pop out. What have I got wrong?
logoContainer.on Events.Click, -> for index, layer of pinsContainer.subLayers layer.animate properties: scale: 1.1 time: 0.2 delay: index/7 layer.on Events.AnimationEnd, -> @.animate properties: scale: 1.0 time: 0.2 curve: "spring(270, 0, 0)" delay: index/7
4 layers animate with a staggered delay, so the animationEnd event will follow the same staggering - are you trying to get it to immediate pop in with no delay? - if so, remove the line that causes the delay in animationend
Silly me... Andrew, Thank you very much! :D