I have an element with content inside it.
An element - with its contents - must be completely opaque on the left, completely transparent on the right. Evenly graded from right to left.
Since the contents and background into which it merges are not fixed, it is impossible to make an image in advance.
I know that gradients can be used as a background (-moz-linear-gradient), but this does not help me - here I need the contents of the element to disappear.
I was able to do this in IE (Alpha Mask) and Webkit (image mask), but completely blocked in FF.
I am not against using SVG if there is a way.
Please, help?
css firefox opacity transparency gradient
SamGoody
source share