new function named "animation"