javascript - Animation to individual scroll section -
check full code here http://codepen.io/anon/pen/jwqoxa
in above codepen trying apply animation different scroll sections. when open application individual sections perform animation @ same time. not wait till comes user's view. want apply same animation , make perform when comes user's view. please let me know how can achieve this. in advance!
html5:
<div class="navbar-fixed"> <nav> <div class="nav-wrapper light-blue darken-4"> <a href="#" class="brand-logo">hallo</a> <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a> <ul class="right hide-on-med-and-down section table-of-contents"> <li><a href="#about" style="color:#">about us</a></li> <li><a href="#features" style="color:">features</a></li> <li><a href="#team" style="color:">our team</a></li> <li><a href="#contact" style="color:">contact us</a></li> </ul> <div class="aboutanimate" id="about"> <h1>watch me move-1</h1> <p> example shows how use css animations make <code>h1</code> elements move across page. </p> <p>in addition, output text each time animation event fires,so can see them in action.</p> </div> <div class="featuresanimate" id="features"> <h1>watch me move-2</h1> <p>this example shows how use css animations make <code>h1</code>elements move across page.</p> <p>in addition, output text each time animation event fires,so can see them in action.</p> </div>
css:
.aboutanimate,.featuresanimate,.teamanimate,.contactanimate { animation-duration: 1s; animation-name: slidein; } @keyframes slidein { { margin-left: 100%; width: 300%; } { margin-left: 0%; width: 100%; } }
i have got quick hack solution instead of such long solution. have used animate.css , wow.js. , works expected. can see example here : http://codepen.io/anon/pen/objqqm
<div class="row" > <div class="aboutanimate"> <div id="about" class="section scrollspy"> <div class="container"> <h2 class="wow animated shake" style="text-decoration:underline;text-align:center;font-weight:bold;font-family:comic sans ms">about us</h2><br><br> <div class="quot animated shake"> <h5 style="color:#446cb3;padding-top:30px;text-decoration:underline;font-weight:bold;font-size:35px;font-family:comic sans ms">vision</h5> <p id="vision">"lorem ipsem lorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsem</p> <h5 style="color:#446cb3;text-decoration:underline;font-weight:bold;font-size:35px;font-family:comic sans ms">mission</h5> <p id="vision">"lorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsem"</p> <h5 style="color:#446cb3;text-decoration:underline;font-weight:bold;font-size:35px;font-family:comic sans ms">objectives</h5> <p id="vision">"lorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsemlorem ipsem"</p><br><br><br> </div> </div> </div> </div><br><br>
Comments
Post a Comment