Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css make image gray

img {
  filter: gray; /* IE6-9 */
  -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
  filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
}

/* Disable grayscale on hover */
img:hover {
  -webkit-filter: grayscale(0);
  filter: none;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #image #gray
ADD COMMENT
Topic
Name
8+3 =