Achieve X-Ray effect with CSS

CSSWeb DevelopmentFront End Technology

X-Ray effect grayscales and flattens the color depth.

The following parameter is used in this filter −

S.no
Parameter & Description
          1.
Xray
Grayscales and flattens the color depth.

Example

You can try to run the following code to create an X-Ray effect −

Live Demo

<html>
   <head>
   </head>
   <body>
      <img src="/css/images/logo.png" alt="CSS Logo" style="Filter: Xray" />

      <p>Text Example:</p>

      <div style="width: 357;
         height: 50;
         font-size: 30pt;
         font-family: Arial Black;
         color: red;
         Filter: Xray;">CSS Tutorials</div>
   </body>
</html>
raja
Published on 27-Apr-2018 07:48:12
Advertisements