I amm working on rotation of objects around a circle. I want to stop the animation when a box reachs at top, there should be a delay of seconds then start animation until next box reaches on top.
Code Snippet:
if(x==40.109375 && y==218.015625){
clearInterval(timer);
timer = setInterval(animate, 1000);
}
x and y are the coordinates of top position
