add lock when animating