How to fade an object evenly into transparency to give it distance look in blender 2.82
If it's a still image you could  make the material fade to transparent from the front to the back of the object using the material itself (I realize this would not work if the objects are animated and distance to camera is controlling transparency). Not sure what your use case is.