CSS image hover / scale works great in chrome but not IE -
i working on website , have horizontal table 4 images want scale larger when hovered. have opacity effect become solid when hovered on. works great on chrome images @ 100% opacity , not scale larger when hovered on ie.
jsfiddle: https://jsfiddle.net/u9hk6x5y/
#hoverimage { text-align:center; margin-left:13%; margin-right:13%; z-index: 9999; } #hoverimage1 { width: 162px; float: left; margin-right: 10px; z-index:9999; } #hoverimage2 { width: 162px; float: left; margin-right: 10px; z-index: 9999; } #hoverimage3 { width: 162px; float: left; margin-right: 10px; z-index: 9999; } #hoverimage4 { width: 162px; float: left; margin-right: 10px; z-index: 9999; } #hovergallery{ -webkit-transition-duration: 0.5s; /*webkit: animation duration*/ -moz-transition-duration: 0.5s; /*mozilla duration version*/ -o-transition-duration: 0.5s; /*opera duration version*/ transition-duration: 0.5s; opacity: 0.8; /*initial opacity of images*/ margin: 0 20px 10px 0; /*margin between images*/ } #hovergallery:hover{ -webkit-transform:scale(1.4); /*webkit: scale image 1.2x original size*/ -moz-transform:scale(1.4); /*mozilla scale version*/ -o-transform:scale(1.4); /*opera scale version*/ -ms-transform:scale(1.4); transform: scale(1.4); opacity: 1; }
you said 4 images
, using id selector
, change class selector
, since id must unique per page
update
this said (do <img />
tags, btw checked , worked fine on ie, chrome & firefox.
<img class="hovergallery" height="240px" width="162px" src="images/toolreconditioninggraphic.png" /> .hovergallery{ -webkit-transition-duration: 0.5s; -moz-transition-duration: 0.5s; -o-transition-duration: 0.5s; transition-duration: 0.5s; opacity: 0.8; margin: 0 20px 10px 0; } .hovergallery:hover{ -webkit-transform:scale(1.4); -moz-transform:scale(1.4); -o-transform:scale(1.4); -ms-transform:scale(1.4); transform: scale(1.4); opacity: 1; }
Comments
Post a Comment