how to drive 25 led with 5 pcs of 595 shift register?

First I want to make all 25 led running as I expect.

You simply shift out 4 bytes. Using shiftOut() for example:

  shiftOut(data[3]); //shift out the furtherest byte
  shiftOut(data[2]);
  shiftOut(data[1]);
  shiftOut(data[0]); //shift out the closest byte
  //done!

After that I will be making a long version

You can either slow it down or you can use buffers.

Both are very simple.