Hello may you help me, why this doesn't work?
for all sketch layers it animates only ripples[3] layer.
for i in [1...4]
sketch["sortBy#{i}"].on Events.Click, ->
ripples[i-1].opacity = 1
ripples[i-1].scale = 0.5
ripples[i-1].animate
properties:
scale:1
opacity:0
curve: "spring(300,30,0)"
time: 0.4
2 Comments