What I want, is exclude part should be display in yellow color.
body :not(.exclude) {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
filter: grayscale(100%);
}
.exclude {
background: yellow;
height: 100px;
}
.gray {
background: purple;
height: 300px;
}
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="gray">
<div class="exclude"></div>
</div>
</body>
</html>
I tried but it is not displaying in yellow color