While experimenting with columns, I noticed a peculiar issue when I added a hover-over image.
The hover effect works fine on the left side of the column but is disabled on the right side.
I thoroughly reviewed my code and layout but could not detect any errors.
Has anyone encountered this problem before? If so, were you able to find a solution?
You can view the jsfiddle here.
CSS:
.column {
margin-top: 5%;
-moz-column-count: 2;
-moz-column-gap: 30px;
-webkit-column-count: 2;
-webkit-column-gap: 30px;
column-count: 2;
column-gap: 30px;
}
img.grayscale {
filter: gray;
/* IE6-9 */
-webkit-filter: grayscale(100%);
/* Chrome 19+ & Safari 6+ */
-webkit-transition: all .6s ease;
/* Fade to color for Chrome and Safari */
-webkit-backface-visibility: hidden;
/* Fix for transition flickering */
clear: both;
padding-top: 1em;
padding-bottom: 1em;
display: block;
}
img.grayscale:hover {
-webkit-filter: grayscale(10%);
}
HTML:
<ul class="column">
<li>text...</li>
<img class="grayscale" src="http://i57.tinypic.com/2i9p8go.jpg" width="80%" height="auto" />
<li>...text</li>
<ul>
EDIT 01 @Richard Parnaby-King suggested removing
-webkit-backface-visibility: hidden;
, which helped somewhat. However, there are still issues if the cursor hovers rapidly back and forth over the image. Continued search for a solution.