Added animation code from orcajam.