Memasang jQuery Custom Image Lightbox

Lightbox Putih

by Hm Ba

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<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="Hm" src="http://1.bp.blogspot.com/-tE8hCCen5yI/VEJiG12KA6I/AAAAAAAAGdc/-DzSzK0f7QI/s1600/2demo.png" height="400" style="border: none;" width="680" /></a></div>
<div class='credit'>
  <a class='blog-link' href='http://www.ar1web.com/2014/10/best-hover-effects.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;
 }