Skip to content

Instantly share code, notes, and snippets.

@jerone
Created March 23, 2014 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerone/9723502 to your computer and use it in GitHub Desktop.
Save jerone/9723502 to your computer and use it in GitHub Desktop.
Transitions for jQuery pjax
$(document).on('pjax:start', function() {
$(this).find('[data-pjax-container]').fadeOut();
}).on('pjax:end', function() {
$(this).find('[data-pjax-container]').fadeIn();
});
@jerone
Copy link
Author

jerone commented Mar 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment