I am trying to make a simple pulsing animation of a on-screen element in Framer.js and now it looks like this:
element.animate
properties: scale:1.3
element.on Events.AnimationEnd,->
this.scale = 1
locationUn.animate
properties: scale:1.3
basically when the screen is loaded, the element will be enlarged and upon end of the animation, it's forced back to scale 1 and run the animation again; but this solution is not elegant and animation seems very abrupt.
I am new to CoffeeScript...is there anyway to write a infinite loop to check on some condition like this?
checker = true
while(checker == true){
run animation
if(some events occurs){
checker = false
}
}
....
How to realize this in CoffeeScript?