Skip to content

Instantly share code, notes, and snippets.

@anonewb
Forked from machwatt/index.html
Created November 15, 2018 13:24
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 anonewb/197dbb754f59969f943b757586d3dd8d to your computer and use it in GitHub Desktop.
Save anonewb/197dbb754f59969f943b757586d3dd8d to your computer and use it in GitHub Desktop.
animate.css and waypoints.js
<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