use CABasicAnimation rightly

use CABasicAnimation rightly