This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Eugene Dobrovolsky
Posted Nov 22 - Read on Facebook

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

3 Comments

Eugene Dobrovolsky

Andrew Nalband

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

Eugene Dobrovolsky

Silly me... Andrew, Thank you very much! :D

Read the entire post on Facebook