need help to blink simple pattern with shift register

my requirement is flashing of whole pattern

No you did not say that you just said

So please add the blink function in the code

That is what I added.
So exactly what do you want to blink and how?
The whole pattern or just the LEDs that are on?
If it is the whole pattern then use:-

for(int i = 0; i<8; i++){
led[i] ^= 1; // this will blink all the LEDs in the pattern 
}
delay(300); // so you can see it.