CSS Property Value How to - webkit-filter: grayscale(100%) sepia(100%);








Question

We would like to know how to webkit-filter: grayscale(100%) sepia(100%);.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div:hover {<!--  ww  w.  ja v a  2 s.co m-->
  opacity: .5;
  -webkit-filter: grayscale(100%) sepia(100%);
}
</style>
</head>
<body>
  <div>
    <img src="http://www.java2s.com/style/download.png" />
  </div>
</body>
</html>

The code above is rendered as follows: