Basic example
example.css
filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.25));
The drop-shadow() function creates a shadow based on the element's alpha outline, not its box.
filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.25));filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.25));filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.25));drop-shadow() is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with grayscale().
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.
2 people found this page helpful