.gray img {
	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="" 10=""></feColorMatrix></filter></svg>#grayscale'); /* Firefox 3.5+, IE10 */
	filter:gray; /* IE6-9 */
	-webkit-filter: grayscale(100%); /* Chrome 19+ &amp; Safari 6+ */
	-webkit-transition: all .6s ease; /* Fade to color for Chrome and Safari */
	-webkit-backface-visibility: hidden; /* Fix for transition flickering */
}

/* 오버시 컬러로 */
.gray:hover {
	filter: none;
	-webkit-filter: grayscale(0%);
}

출처 : 여기


'Language > CSS' 카테고리의 다른 글

CSS float 요소 중앙정렬  (0) 2011.10.04

+ Recent posts