Fade in / out on text render

The PixelDepth node will give you the distance you are looking for.