Have an element filled with a gradient. Set the direction of the gradient and opacity of the gradient easily.