I have several nested divs and in one I got an image. If the user hovers the image, he should display a different interval (in the same wrapper).
html source:
<div class="columns one-third">
<a href="#">
<img src="http://fc02.deviantart.net/fs70/i/2013/088/7/2/transformers_gold_icon_by_slamiticon-d5z7dqs.png" alt="Jack Sparrow" width="250px">
</a>
<div class="team-name"><h5>Jack Sparrow</h5><span></span></div>
<div class="team-about"><p><span class="slug">Chief Executive Officer / CEO</span><span class="number">#97</span></p></div>
Css source:
div>a>img {
filter: url(/filters.svg#grayscale);
filter: gray;
-webkit-filter: grayscale(1);
}
div>a>img:hover {
filter: none;
-webkit-filter: grayscale(0);
display:block;
}
div.team-about .slug{
float:left;
}
div.team-about .number{
float:right;
margin: -10px 10px auto;
font-size: 28px;
display: none;
}
I prepared jsfiddle for testing: http://jsfiddle.net/mnx8agy0/
the image freezes, it should load the number.
Any idea on this?
source
share