inserting animation when the content is loaded