tags:

views:

70

answers:

2

I'm using the Raphael library to draw some shapes, and then animate them into view within the browser.

Is there any way I can check when one of these animations is complete in order to then trigger another function?

+1  A: 

I have just found an answer to this question, so will post for the reference of others.

Here is what I found: http://net.tutsplus.com/tutorials/javascript-ajax/an-introduction-to-the-raphael-js-library/

A callback function can be added as an argument, as detailed in chapter 6 of the above article.

Jack Roscoe
A: 

Reading official documentation could help: http://raphaeljs.com/reference.html#animate

Dmitry Baranovskiy
Yes, I did see the reference to callback functions in your documentation. I was looking for an example of it in use however, as my programming experience left me unsure on how to implement this. I should have stated this in the question.
Jack Roscoe