Greyscale Images

/ Published in: HTML
Save to your folder(s)

Image will be greyscale and will turn colored when hovered over

Copy this code and paste it in your HTML
  1. <!-- start code provided by -->
  2. <img src="yourimagehere" style="filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" onmouseover=" = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)'" onmouseout=" = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)'">
  3. <!-- end code provided by -->


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.