add timer to control animate effect