Skip to content

Instantly share code, notes, and snippets.

@owngeek
Created September 26, 2016 09:27
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 owngeek/c624824848f1187a1392946ec594f72e to your computer and use it in GitHub Desktop.
Save owngeek/c624824848f1187a1392946ec594f72e to your computer and use it in GitHub Desktop.
Scroll-based Animations
<link rel="stylesheet" href="https://daneden.github.io/animate.css/animate.min.css">
<style>
.wow:first-child {
visibility: hidden;
}
#container {
width: 980px;
margin: 0 auto;
}
section {
height: 300px;
margin: 60px 0;
}
.section--purple {
background-color: #9b59b6;
}
.section--blue {
background-color: #3498db;
}
.section--green {
background-color: #2ecc71;
}
#main {
text-align: center;
margin-top:100px;
}
</style>
<div id="container">
<div id="main">
<section class="wow fadeInUp" style="background-color: #f1c40f;"></section>
<section class="wow pulse" style="background-color: #e74c3c;" data-wow-iteration="infinite" data-wow-duration="1500ms"></section>
<section class="section--purple wow slideInRight" data-wow-delay="2s"></section>
<section class="section--blue wow bounceInLeft" data-wow-offset="300"></section>
<section class="section--green wow slideInLeft" data-wow-duration="4s" ></section>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<script>
new WOW().init();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment