update animation cycle