we can provide cool animation effects in page contents easily, where when you scroll down. This provide an interesting and interactive experience for your viewers.
More about Scroll-based Animations ( http://mynameismatthieu.com/WOW/docs.html )
Scroll-based Animations egs:
http://mynameismatthieu.com/WOW/index.htmlhttp://www.web2feel.com/freeby/scroll-effects/index6.html
Here you can find a sample HTML markup for the Scroll-based Animation.
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> |
No comments :
Post a Comment