support multiple elements for animation