Created
September 26, 2016 09:27
-
-
Save owngeek/c624824848f1187a1392946ec594f72e to your computer and use it in GitHub Desktop.
Scroll-based Animations
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
<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> |
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
<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> |
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
<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