Skip to content

Instantly share code, notes, and snippets.

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