stole animation from raphael docs