fullpage.jsを使って、パララックスのサイトを作っています。
スクロールして要素に達した時、テキストや画像をアニメーションで表示できるようにするため、animate.cssとwow.jsを使っているんですが、1ページ目のアニメーションしか実行されません。
参考サイトがたくさんあり、それを見てやっているんですが、上手くいきません。
教えていただけないでしょうか?
3ページ目の<div class="sec2_txt01">が動きません。
ソース
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8" /> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <link rel="stylesheet" href="css/style.css" /> <link rel="stylesheet" href="css/animate.css" /> <link rel="stylesheet" href="css/jquery.fullPage.css" /> <!-- <link rel="stylesheet" href="css/examples.css" />--> <style> /* Style for our header texts * --------------------------------------- */ h1{ font-size: 5em; font-family: arial,helvetica; color: #fff; margin:0; } /* Centered texts in each section * --------------------------------------- */ .section{ text-align:center; } /* Overwriting styles for control arrows for slides * --------------------------------------- */ .controlArrow.prev { left: 50px; } .controlArrow.next{ right: 50px; } /* Bottom menu * --------------------------------------- */ #infoMenu li a { color: #fff; } </style> <!--[if IE]> <script type="text/javascript"> var console = { log: function() {} }; </script> <![endif]--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <script src="js/jquery.slimscroll.min.js"></script> <script src="js/jquery.fullPage.js"></script> <!-- <script type="text/javascript" src="js/examples.js"></script>--> <script src="js/wow.js"></script> <script> new WOW().init(); </script> <script> $(document).ready(function() { $('#fullpage').fullpage({ //anchors: ['1stPage', '2ndPage', '3rdPage', '4thPage', '5thPage'], //sectionsColor: ['#C63D0F', '#1BBC9B', '#7E8F7C'], navigation: true, navigationPosition: 'right', navigationTooltips: ['First page', 'Second page', 'Third page', 'Fourth page', 'Fifth page'] }); }); </script> </head> <body> <div id="fullpage"> <div class="section " id="section0"> <div class="intro"> <div class="con_r"> <div class="sec0_txt01 wow fadeIn" data-wow-duration="1s" data-wow-delay="3.5s"><img src="img/txt01.png" width="398" height="43"></div> <div class="sec0_txt01 wow fadeIn" data-wow-duration="1s" data-wow-delay="4s"><img src="img/txt02.png" width="412" height="236"></div> <div class="sec0_txt01 wow fadeIn" data-wow-duration="1s" data-wow-delay="4.5s"><img src="img/txt03.png" width="221" height="24"></div> </div> </div> </div> <div class="section" id="section1"> <div class="intro"> <div class="sec1_pic01"><img src="img/campaign.png" width="870" height="160"></div> <table> <tr> <td>施術メニュー</td> <td>料金(税込)</td> <td>時間</td> <td>備考</td> </tr> <tr> <td>マッサージ</td> <td>\800</td> <td>10分</td> <td>10分延長ごとに+\800</td> </tr> <tr> <td>IDストレッチ</td> <td>\1,200</td> <td>15分</td> <td>15分延長ごとに+\1,200</td> </tr> <tr> <td>骨盤矯正</td> <td>\3,000</td> <td>20分</td> <td>お得な5回パックで\12,000</td> </tr> </table> </div> </div> <div class="section" id="section2"> <div class="intro"> <div class="sec2_txt01 wow fadeIn" data-wow-duration="1s" data-wow-delay="1s"> <img src="img/section02_txt01.png" width="550" height="73"> <p>私たちは、女性のキレイを支えるパートナーとして無理なく「あなたに合った方法」で、ボディメイクを一緒に行っていきます。</p> </div> </div> </div> <div class="section" id="section3"> <div class="intro"> <h1><img src="img/section03_txt01.png" width="550" height="73"></h1> <p>私たちは、あなたのキレイのために、トレーニングの合間に休憩していただくスペースは快適にくつろいでいただけるよう拘っています。</p> </div> </div> <div class="section" id="section4"> <div class="intro"> <h1>Enjoy it</h1> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> <p>An easy and beautiful way to navigate throw the sections</p> </div> </div> </div> </body> </html>
追加したcss
@charset "utf-8"; /* CSS Document */ #section0 { width:100%; height:100%; background-image:url(../img/top.gif); background-position: 50% 50%; background-size: cover; /* 背景画像をフルスクリーン表示 */ } .con_r { margin: 0 0 0 50%; } .sec0_txt01 { margin: 0 0 20px 0; } #section2 { width:100%; height:100%; background-image:url(../img/section02_bg.png); background-position: 50% 50%; background-size: cover; /* 背景画像をフルスクリーン表示 */ } .sec2_txt01 { width: 40%; margin: 150px 0 0 0; } .sec2_txt01 p { color: #666; }

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/03 00:55