function
opacity() — CSS reference
Reduces the alpha of the filter input; one is neutral and zero is transparent. Values above one are treated as one. Unlike the opacity property this can appear at a chosen point in a filter chain.
Formal Syntax & Structure
css syntaxcss
opacity([ <number [0,∞]> | <percentage [0,∞]> ]?)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS visual effects lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative; margin:20px;width:80px;height:60px;background:rgb(255,0,0);box-sizing:content-box} #a{filter:opacity(0)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>