Add animation to elements