You could use the Sampler Info node for this. Use it's facing ratio to control a Ramp's V coordinate and then the Ramp's color to control the shader's Transparency. Can't check right now but you may need to add a Set Range node between the Sampler Info and the Ramp to scale the facing ratio to 0 - 1 (it's -1 to 1 by default if i remember correct).