Added animation constructor.

done