Whispering Turbines, Inc.
This is the website that is in question. Below is the script that I think is causing the problem. Every time you navigate to a new page I want the pages to fade out/in. However, there is a brief blink in between animations. I have tried to use stop() and not, but neither seems to help. I will post both options.
Option 1:
Code JavaScript:$(document).ready(function() { $('body').css('background-color', '#000'); $('body').css('display', 'none'); $('body').fadeIn(1000); $('a').click(function(event){ event.preventDefault(); linkLocation = this.href; window.location = linkLocation; }); });
Option 2:
Code JavaScript:$(document).ready(function() { $('body').stop().css('background-color', '#000'); $('body').css('display', 'none'); $('body').fadeIn(1000); $('a').click(function(event){ event.preventDefault(); linkLocation = this.href; window.location = linkLocation; }); });


Reply With Quote


Bookmarks