Screen.backgroundColor="#877dd7"
LayerA=new Layer
width: 150
height: 150
x:Align.center
y:Align.center
backgroundColor: "#fff"
borderRadius: 6
LayerA.originX=1
LayerA.originY=0
LayerA.animate
properties:
rotation:90
curve: "spring(200,30,10,19)"
LayerA.on Events.AnimationEnd, ->
this.animate
properties:
rotation:0
repeat:5
delay:2
curve:"spring(200,10,0)"