renamed animated_element to element