-
-
Save anonewb/197dbb754f59969f943b757586d3dd8d to your computer and use it in GitHub Desktop.
animate.css and waypoints.js
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
<html> | |
<head> | |
<link href="path/to/your/css/animate.css" rel="stylesheet" type="text/css"> | |
<style> | |
.hidden { | |
opacity: 0; | |
} | |
.visible { | |
opacity: 1; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container fade-in-up"></div> | |
</body> | |
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script src="path/to/your/js/jquery.waypoints.min.js"></script> | |
<script> | |
$('.fade-in-up').addClass('hidden').waypoint({ | |
handler: function() { | |
$(this.element).addClass("visible animated fadeInUp") | |
}, | |
offset: '90%' | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment