How can I make particles fade when I get closer?

Hello. I am trying to figure out how I can make the alpha of a particle decrease when I’m in close proximity to them. Is there a shader that can do that?

You could make a variable for how far the player should be for the particle to begin to fade. So, something like…

if player is within maxRange from particle
    begin to fade. 

This could be done once player is within maxRange keep track how close the player is from the particle and the max Range is the strongest and as you get closer to the particle it starts to reduce the alpha value of it

Hope this makes sense

EDIT: In the begin to fade part. Check out Unity - Scripting API: ParticleSystem
You could modify the duration or the emission to give it the fade away feel.