filter html code example
Example 1: invert css
.image {
filter: invert(1);
}
Example 2: js filter text
<script>
$('input[name="search_field"]').on("keyup", function() {
filtrate($(this).val().toLowerCase());
});
function filtrate(searched) {
$(".filter-key > h3").filter(function() {
var isHidden = ($(this).text().toLowerCase().indexOf(searched) > -1) ? 'block' : 'none';
$('.filter-key').css('display', isHidden);
});
}
</script>
Example 3: fitler css for making white img
filter css for making white img