update animation speed