Last active
August 29, 2015 14:24
-
-
Save machwatt/0d8e9c126b32509397f4 to your computer and use it in GitHub Desktop.
animate.css and waypoints.js for animate content as the user scrolls
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
$('.fade-in-up').addClass('hidden').waypoint({ | |
handler: function() { | |
$(this.element).addClass("visible animated fadeInUp") | |
}, | |
offset: '90%' | |
}); |
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
<div class="container fade-in-up"></div> |
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
.hidden { | |
opacity: 0; | |
} | |
.visible { | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment