Only call animation callback if it was provided