lundi 2 mars 2015

Want to fadeout the present web page and fade in the next one?


Vote count:

0




I want to fadeout the present web page slowly and fade In the next page when I click on the link for any other page (in my web site).



$(document).ready(function() {
$('body').css("display","none");
$('body').fadeIn(2000);

$("a:transition").click(function() {
event.preventDefault();
linkLocation=this.href();
$('body').fadeOut('slow', 0, redirectPage);
});

function redirectPage() {
window.location=linkLocation;
};
});

http://ift.tt/1BxbrmQ


With the above code, I'm able to fade In the contents of the next page, the fadeout on the present page doesn't seem to work!!


open for suggestions!


Thanks in advance.



asked 13 secs ago







Want to fadeout the present web page and fade in the next one?

Aucun commentaire:

Enregistrer un commentaire