Add ids and anim_cancel(id) function to animations