jquery page fade in/out with autonav
PermalinkI'm using the standard autonav and was just wondering if it was possible to add a fade in and out of pages, when you click between links?
Similar to this:http://www.stylodesign.co.uk/
I've tried adding this to my header file but with no luck
<script type="text/javascript"> $('body').hide(); $('body').fadeIn(1500); </script>
Any ideas how to do this?
thanks for looking all
How could I make this work with autonav?
Could I use the code that i posted above? Just not sure how to link it in with autonav that's all!
thanks for looking
This is why my post said to either add it in your theme's global JS include file if you have one, or just put it in your footer.
Thanks for that and your input on this!
So it's only doing it on anchors that are actual links and not mail links, javascript links, or links that open in new windows.
Just add something similar to that in your global JS include inside a jQuery ready method and it will do what you want. If you don't have a global JS file you're already using, then you could just add it to your footer include in your theme.