<html>
<head>
<style>
img {
animation: mymove 7s infinite;
}
@keyframes mymove {
50% {
filter: grayscale(100%);
filter: grayscale(100%);
}
}
</style>
</head>
<body>
<h1>Animation of filter</h1>
<p>Gradually change the color of the image to black and white (100% grayscale), and back to its original colors:<p>
<img src="pineapple.jpg" alt="Pineapple" width="300" height="300">
<p><strong>Note:</strong> The filter property is not supported in Edge 12 or Internet Explorer.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_filter by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:35:51 GMT -->
</html>