Created
May 5, 2014 22:40
-
-
Save Robaum/57fd21a4b3f263bd9f86 to your computer and use it in GitHub Desktop.
Using Animate.css with jQuery Waypoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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