ok so i've posted this thread on multiple forums, been waiting for a reply for a really long time, only realizing today that i posted the wrong code!! (i'm laughing to keep myself from crying)
so here it is, hopefully this will elicit some responses. so below is the jquery fade in fade out code:
Code:
$(document).ready(function(){
$(".appearing-image img").css("opacity",0).fadeTo(500, 0);
$(".appearing-image img").mouseover(function ()
{
if ($(this).is(':animated'))
{
$(this).stop().fadeTo(250,1);
}
else
{
$(this).fadeTo(250, 1);
}
});
$(".appearing-image img").mouseout(function () {
if ($(this).is(':animated'))
{
$(this).stop().fadeTo(250,0);
}
else
{
$(this).fadeTo(250, 0);
}
});
here is the html code:
Code:
<div class="thumbnail" style="margin-top:5%; margin-right:2%;">
<div class="visible-image">
<img src="images/illustrationslabel.jpg" />
</div>
<div class="appearing-image"><img onclick='$("a.illustrations:first").trigger("click");' src="images/illustrations.jpg" />
</div>
</div>
the animation gets stuck if you move your mouse over the image, click the image (to open fancybox) and move the cursor off the image quickly before fancybox opens. hope that helps.
Please any response would be awesome.
thanks