Hi,
I have a hover effect whereby an image is being faded out and another is fading in. However, Is there a way for these actions to happen simultaneously? So as one is fading out the other fades in.
The second image is displayed none on page load.
My code so far is:
Code:
$('.square').mouseenter(function () {
$(this).attr('data-image', 'two');
$(this).find('.one').fadeOut('medium');
$(this).find('.two').fadeIn('medium');
});
Thanks,