Skip to content

Instantly share code, notes, and snippets.

@Robaum
Created May 5, 2014 22:40
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 Robaum/57fd21a4b3f263bd9f86 to your computer and use it in GitHub Desktop.
Save Robaum/57fd21a4b3f263bd9f86 to your computer and use it in GitHub Desktop.
Using Animate.css with jQuery Waypoints
//Animate from top
$('.animated').waypoint(function() {
$(this).toggleClass($(this).data('animated'));
},
{ offset: 'bottom-in-view' });
//Animate from bottom
$('.animated').waypoint(function() {
$(this).toggleClass($(this).data('animated'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment