Using a for loop to go through the set of objects and animate each.