added base functionality for animation