You can create this effect in photoshop by creating the gradient fill you want, then adding a layer mask to the layer with another white to black gradient on the mask perpendicular to your first gradient.

![Screen Shot][1]


  [1]: https://i.sstatic.net/qa5EL.png