thickness dependent transparency
You can use Principled Volume for that.


Use the Density value to adjust the strength
Larger volumes obscure objects more
For Eevee, crank up the samples in  Render Tab > Volumetrics.