Skip to content

Instantly share code, notes, and snippets.

@christopherhein
Created November 3, 2010 19:47
Show Gist options
  • Save christopherhein/661591 to your computer and use it in GitHub Desktop.
Save christopherhein/661591 to your computer and use it in GitHub Desktop.
<style type="tex/css">
body { display:none }
</style>
<!-- Include jQuery -->
<script type="text/javascript">
$(document).ready(function() {
$("body").fadeIn(500);
$("a").click(function(event){
event.preventDefault();
link_location = this.href;
$("body").fadeOut(500, redirectPage);
});
function redirectPage() {
window.location = link_location;
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment