A function to call once the animation is complete, called once per matched element.