JSFiddle - React, Tailwind, and code Playground

by first web

HTML

<div class="separator" style="clear: both; text-align: center;font-weight: bold;color: #444;">
تحويل الصورة إلى لونها الرمادي
</div>    
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a style="margin-left: 1em; margin-right: 1em;"><img alt="فرست ويب" src="http://im50.gulfup.com/BqwoNG.png" height="400" style="border: none;" width="680" /></a></div>
<div class='credit'>
  <a class='blog-link' href='http://www.first1web.com/2015/06/Hover-effect-on-the-images-in-gray.html' target='_blank'>عودة للموضوع</a>
</div>

CSS

.credit{
  text-align:center;
  margin:20px 0;
}
.blog-link{
color:#fff;
font-weight: bold;
text-decoration:none;
background:#eee;
background-size:40px;
line-height:50px;
display:inline-block;
padding:0 10px;
border-radius:4px;
border-bottom:3px solid #ddd;
color:#333;
font-family:'open sans',sans-serif;
margin:10px;
}
img:hover {
 filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
 filter: gray;
 -webkit-filter: grayscale(100%);
 }
 img {
 filter: none;
 -webkit-filter: grayscale(0%);
 transition: all .5s;
 }