In this blog it is explained that how to make text transparent in photoshop.
- Open image in photoshop.
2. Take new layer and fill black in it. Decrease opacity of black layer to 50%.
3. Select type tool and write text(here sunset) on upper layer.
4. Right-click on type layer and open blending option.
select shallow in knockout and decrease opacity to 0%.