What this does is sets the body to not display, then fades it in.
Then once you click a link which you have deemed worthy of making the page fade out, it first prevents the default, which is instantly going to that link, and sets the variable new Location to be the href attribute of the currently clicked link. Then the body fades out and after the fade out it calls function newpage().
Try that puppy out.
Sorry I have a bit too much fun when it comes to js/jquery, I'm still learning myself so it's a learning experience for both of us!
I know this is an old thread but I couldnt help notice the code that was posted... Everything soap posted will work perfectly fine for what youre trying to do, he just forgot to pass the event object.
The code below should get you the effect you were looking for:
Dear tomscustoms, thanks for the update. I have not been able to get the FadeOut work at all! When a button is clicked, current page immediately disappears (doesn't fadeout) and the new page nicely fades in. Have you tested above code? is there a way to fix it? Thanks.
Example Link
(Click on any of the page links at the top)
http://www.stylodesign.co.uk/
Thank You
1, On click fade the page elements out.
2, Get JS to redirect to the new page.
Thank You
That'd be jQuery fading out the page...
I understand that's not much info =/ I'll be releasing a little framework that is very similar to this, only for slides, very soon.
What this does is sets the body to not display, then fades it in.
Then once you click a link which you have deemed worthy of making the page fade out, it first prevents the default, which is instantly going to that link, and sets the variable new Location to be the href attribute of the currently clicked link. Then the body fades out and after the fade out it calls function newpage().
Try that puppy out.
Sorry I have a bit too much fun when it comes to js/jquery, I'm still learning myself so it's a learning experience for both of us!
Do you have any news or tutorial of how can I have fade in - fade out between web pages?
@stavroch try this script…good luck!
http://www.onextrapixel.com/2010/02/23/how-to-use-jquery-to-make-slick-page-transitions/
I know this is an old thread but I couldnt help notice the code that was posted... Everything soap posted will work perfectly fine for what youre trying to do, he just forgot to pass the event object.
The code below should get you the effect you were looking for:
If you notice, the only difference in the code above and what soap posted was on the line with
it should have read
Hopefully this helps someone out in the future :)
Dear tomscustoms, thanks for the update. I have not been able to get the FadeOut work at all! When a button is clicked, current page immediately disappears (doesn't fadeout) and the new page nicely fades in. Have you tested above code? is there a way to fix it? Thanks.