How can i make my animation idle working properly while my walk animation is on?

function Start () {

   // Set all animations to loop
   animation.wrapMode = WrapMode.Loop;
   // except shooting
   animation["run"].wrapMode = WrapMode.Once;
   
   

   // Put idle and walk into lower layers (The default layer is always 0)
   // This will do two things
   // - Since shoot and idle/walk are in different layers they will not affect
   //   each other's playback when calling CrossFade.
   // - Since shoot is in a higher layer, the animation will replace idle/walk
   //   animations when faded in.
   animation["run"].layer = 1;
   
   
  

   // Stop animations that are already playing
   //(In case user forgot to disable play automatically)
   animation.Stop();
}

function Update () {
   // Based on the key that is pressed,
   // play the walk animation or the idle animation
   if (Mathf.Abs(Input.GetAxis("Vertical")) > 0.1)
      animation.CrossFade("walk");
      
      animation.Blend ("idle");
         

   // Shoot
   if (Input.GetButtonDown ("Fire1"))
      animation.CrossFade("run");
}

I don’t want think you can you are trying to make two animations happen at the same time if you want a mix of the 2 I would suggest creating another animation that has them combined.