JSFiddle - React, Tailwind, and code Playground

by Marco

HTML

<div class="fadehover">
            <a href="informacija.php"><img src="http://s25.postimg.org/5fhbardwb/mini_botti.jpg" width="110" height="80"class="a" ></a>
            <a href="informacija.php"><img src="http://s25.postimg.org/3oya99wd7/mini_topo.jpg" width="110" height="80"class="b" ></a>
        </div>

CSS

div.fadehover
{
    position: relative;
}

img.a
{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

img.b
{
    position: absolute;
    left: 0;
    top: 0;
}

JavaScript

$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});