Skip to content

Instantly share code, notes, and snippets.

@machwatt
Last active March 1, 2019 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save machwatt/57d957db9f3b4527cf7b to your computer and use it in GitHub Desktop.
Save machwatt/57d957db9f3b4527cf7b 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>
@neftaligv92
Copy link

dsscsc

@neftaligv92
Copy link

sss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment