This is my jsFiddle. It has onHover event which changes the image. It works fine on chrome. But, doesn't work right on firefox. What to do?
This is the jQuery function:
$(document).ready(function(){$('.viewport').mouseenter(function(e) { $(this).children('a').children('span').fadeIn(200); }).mouseleave(function(e) { $(this).children('a').children('span').fadeOut(200); });}); This is how it looks in chrome: 
And this is how it looks in firefox: 
Also, i have tried both solutions, with jquery and pure css.
mouseentereven in Javascript has nothing to do with CSS.hover()instead of those two functions. It's a bit easier to maintain.