Basic use
example.css
.fade {
mask: linear-gradient(#000, transparent);
}
The mask shorthand sets mask images and related layers that hide parts of an element. Gradients are a common way to fade edges.
.fade {
mask: linear-gradient(#000, transparent);
}.fade {
mask: linear-gradient(#000, transparent);
}mask is a CSS property.
Check support for your audience.
Bottom line: Prefer progressive enhancement when support varies.
Continue with print-color-adjust.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
3 people found this page helpful