Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Fade in happening twice on Chrome WordPress

  • REFUNDED

To view Issue
http://bit.ly/1Nd1kHr

You can see the images load abruptly and then fade in on Chrome. It works fine on firefox, I am not sure why this is a problem on Chrome. Currently the JQuery is

$(document).ready(function() {
var linkLocation = null;
$("#wrap, #image_content").hide().fadeIn(2000);
$("a").click(function(event){
event.preventDefault();
linkLocation = this.href;
$("#wrap, #image_content").fadeOut(1000, function() {
redirectPage();
});
});
function redirectPage() {
window.location = linkLocation;
}
});



Answers (1)

2015-03-26

Reigel Gallarde answers:

did you try adding stop like this?

$("#wrap, #image_content").stop().hide().fadeIn(2000);


Emma comments:

That didn't work.


Emma comments:

It's also running on masonry, do you think that could be an issue?


Reigel Gallarde comments:

have you tried disabling masonry?


Emma comments:

Yes I just disabled it all. It still did the same thing, which makes me think it is my jquery that is causing the issue.