added an interface to animation
animation interface