\r\n\t\r\n\r\n\t\r\n\r\n\t\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n
\r\n\t
\r\n\t\t
\r\n \t
\r\n
\r\n
\r\n
\r\n
\r\n\t\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n \r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \r\n
施術メニュー料金(税込)時間備考
マッサージ\\80010分10分延長ごとに+\\800
IDストレッチ\\1,20015分15分延長ごとに+\\1,200
骨盤矯正\\3,00020分お得な5回パックで\\12,000
\r\n\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n \t\r\n\t\t\t\t

私たちは、女性のキレイを支えるパートナーとして無理なく「あなたに合った方法」で、ボディメイクを一緒に行っていきます。

\r\n
\r\n\t\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t

\r\n\t\t\t

私たちは、あなたのキレイのために、トレーニングの合間に休憩していただくスペースは快適にくつろいでいただけるよう拘っています。

\r\n\t\t
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t

Enjoy it

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t\t

An easy and beautiful way to navigate throw the sections

\r\n\t\t
\r\n\t
\r\n
\r\n\r\n\r\n\r\n\r\n```\r\n追加したcss\r\n```\r\n@charset \"utf-8\";\r\n/* CSS Document */\r\n\r\n#section0 {\r\n width:100%;\r\n height:100%;\r\n background-image:url(../img/top.gif);\r\n background-position: 50% 50%;\r\n background-size: cover; /* 背景画像をフルスクリーン表示 */\r\n}\r\n\r\n.con_r {\r\n\tmargin: 0 0 0 50%;\r\n}\r\n\r\n.sec0_txt01 {\r\n\tmargin: 0 0 20px 0;\r\n}\r\n\r\n#section2 {\r\n width:100%;\r\n height:100%;\r\n background-image:url(../img/section02_bg.png);\r\n background-position: 50% 50%;\r\n background-size: cover; /* 背景画像をフルスクリーン表示 */\r\n}\r\n\r\n.sec2_txt01 {\r\n\twidth: 40%;\r\n\tmargin: 150px 0 0 0;\r\n}\r\n\r\n.sec2_txt01 p {\r\n\tcolor: #666;\r\n}\r\n\r\n```","answerCount":2,"upvoteCount":0,"datePublished":"2016-03-02T01:54:14.381Z","dateModified":"2016-03-03T00:54:07.569Z","acceptedAnswer":{"@type":"Answer","text":"FAQにのってますが試されました?\r\n\r\nShort answer: use the scrollBar:true option for fullPage.js or autoScrolling:false if you don't want to use the auto-scrolling feature.\r\n\r\nfullPageのオプションに\r\n\r\nscrollBar: true\r\n\r\nか、\r\n\r\nautoScrolling: false\r\n\r\nを設定する、と書いてあります。","dateModified":"2016-03-02T09:02:19.371Z","datePublished":"2016-03-02T09:02:19.371Z","upvoteCount":1,"url":"https://teratail.com/questions/28725#reply-45039"},"suggestedAnswer":[{"@type":"Answer","text":"idの section2 が2ページ目という解釈でいいですか?\r\n\r\nsec2_txt01 というクラスと同列に wow クラスを忘れているからでは無いでしょうか。","dateModified":"2016-03-02T02:02:57.761Z","datePublished":"2016-03-02T02:02:57.761Z","upvoteCount":0,"url":"https://teratail.com/questions/28725#reply-44955","comment":[{"@type":"Comment","text":"回答、ありがとうございます。\r\n\r\nsection2が3ページ目です。\r\nwowクラスを入れましたが、動きません・・・。","datePublished":"2016-03-02T02:11:07.142Z","dateModified":"2016-03-02T02:11:07.142Z"},{"@type":"Comment","text":"1ページ目のdivにwowクラスが適用されているので、1ページ目が動くのは理解できます。\r\nwowクラスがイベントトリガーとなっているようですので、wowクラスが書かれていない要素は当然動きません。\r\n\r\nまず、何の要素が何ページ目で動かないのか明確に記載ください。\r\nその上で、動かないとおっしゃるソースを再度記載してみてください。","datePublished":"2016-03-02T02:28:44.362Z","dateModified":"2016-03-02T02:28:44.362Z"},{"@type":"Comment","text":"内容を修正しました。\r\nよろしくお願い致します。","datePublished":"2016-03-02T03:02:18.772Z","dateModified":"2016-03-02T03:02:18.772Z"},{"@type":"Comment","text":"私の書き方が悪かった模様です。\r\n『動かないと思われる箇所』のソースではなく、動かないページのソース全体を見せて頂かないといけません。\r\n何故なら、ご本人が問題であると認識されている箇所以外に原因がある可能性があるからです。\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
\r\n \r\n

私たちは、女性のキレイを支えるパートナーとして無理なく「あなたに合った方法」で、ボディメイクを一緒に行っていきます。

\r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\nちなみに最小構成で該当箇所を構成したら動きましたので、該当箇所以外に問題があるように見受けます。","datePublished":"2016-03-02T04:29:54.310Z","dateModified":"2016-03-02T04:29:54.310Z"},{"@type":"Comment","text":"すみません。ソース全体を載せました。\r\nこれ以外のcssやjsは公式サイトからダウンロードしたままの状態です。","datePublished":"2016-03-02T04:36:58.619Z","dateModified":"2016-03-02T04:36:58.619Z"},{"@type":"Comment","text":"確認いたしました。\r\n※ソース内にクライアント様名らしきものが乗ってますので、公開する際はNDA情報に気をつけて掲載ください。\r\n\r\n結論から言いますと、wow.jsとfullpage.jsは同時には使えません。\r\n海外の方で同様にスタックしている方の解答も見つけましたので参考に。\r\nhttp://stackoverflow.com/questions/30736025/use-of-wow-min-js-with-jquery-fullpage-js\r\n\r\nローカル環境でも現象確認し、状況から原因を特定しましたが、\r\nwow.jsで、要素が表示されるまでの判定キーとして、スクロールに関するエレメントから取得を試みているようで、fullpage.jsがそのスクロール値の取得をwow.jsにとって阻害する形となっています。\r\n\r\njsモジュールを弄るのはかなりの手間がかかるので、代替となるjsを見つけていただくことをお勧めします。","datePublished":"2016-03-02T05:14:56.786Z","dateModified":"2016-03-02T05:14:56.786Z"},{"@type":"Comment","text":"そうなんですね。\r\nありがとうございます。\r\n\r\n探してみます。","datePublished":"2016-03-03T00:53:11.384Z","dateModified":"2016-03-03T00:53:11.384Z"}]}],"breadcrumb":{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"トップ","url":"https://teratail.com"},{"@type":"ListItem","position":2,"name":"CSS3に関する質問","url":"https://teratail.com/tags/CSS3"},{"@type":"ListItem","position":3,"name":"CSS3","url":"https://teratail.com/tags/CSS3"}]}}}
質問するログイン新規登録
CSS3

CSS(Cascading Style Sheet)の第3版です。CSS3と略されることが多いです。色やデザインを柔軟に変更することが可能になります。

JavaScript

JavaScriptは、プログラミング言語のひとつです。ネットスケープコミュニケーションズで開発されました。 開発当初はLiveScriptと呼ばれていましたが、業務提携していたサン・マイクロシステムズが開発したJavaが脚光を浴びていたことから、JavaScriptと改名されました。 動きのあるWebページを作ることを目的に開発されたもので、主要なWebブラウザのほとんどに搭載されています。

jQuery

jQueryは、JavaScriptライブラリのひとつです。 簡単な記述で、JavaScriptコードを実行できるように設計されています。 2006年1月に、ジョン・レシグが発表しました。 jQueryは独特の記述法を用いており、機能のほとんどは「$関数」や「jQueryオブジェクト」のメソッドとして定義されています。

Q&A

解決済

2回答

10215閲覧

animate.cssとwow.jsがうまく動かない

ic_egawa

総合スコア13

CSS3

CSS(Cascading Style Sheet)の第3版です。CSS3と略されることが多いです。色やデザインを柔軟に変更することが可能になります。

JavaScript

JavaScriptは、プログラミング言語のひとつです。ネットスケープコミュニケーションズで開発されました。 開発当初はLiveScriptと呼ばれていましたが、業務提携していたサン・マイクロシステムズが開発したJavaが脚光を浴びていたことから、JavaScriptと改名されました。 動きのあるWebページを作ることを目的に開発されたもので、主要なWebブラウザのほとんどに搭載されています。

jQuery

jQueryは、JavaScriptライブラリのひとつです。 簡単な記述で、JavaScriptコードを実行できるように設計されています。 2006年1月に、ジョン・レシグが発表しました。 jQueryは独特の記述法を用いており、機能のほとんどは「$関数」や「jQueryオブジェクト」のメソッドとして定義されています。

0グッド

0クリップ

投稿2016/03/02 01:54

編集2016/03/03 00:54

0

0

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; }

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

FAQにのってますが試されました?

Short answer: use the scrollBar:true option for fullPage.js or autoScrolling:false if you don't want to use the auto-scrolling feature.

fullPageのオプションに

scrollBar: true

か、

autoScrolling: false

を設定する、と書いてあります。

投稿2016/03/02 09:02

liply

総合スコア150

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

ic_egawa

2016/03/03 00:55

試してみたら、上手くいきました! ありがとうございます。
guest

0

idの section2 が2ページ目という解釈でいいですか?

sec2_txt01 というクラスと同列に wow クラスを忘れているからでは無いでしょうか。

投稿2016/03/02 02:02

lazyeyed

総合スコア48

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

ic_egawa

2016/03/02 02:11

回答、ありがとうございます。 section2が3ページ目です。 wowクラスを入れましたが、動きません・・・。
lazyeyed

2016/03/02 02:28

1ページ目のdivにwowクラスが適用されているので、1ページ目が動くのは理解できます。 wowクラスがイベントトリガーとなっているようですので、wowクラスが書かれていない要素は当然動きません。 まず、何の要素が何ページ目で動かないのか明確に記載ください。 その上で、動かないとおっしゃるソースを再度記載してみてください。
ic_egawa

2016/03/02 03:02

内容を修正しました。 よろしくお願い致します。
lazyeyed

2016/03/02 04:29

私の書き方が悪かった模様です。 『動かないと思われる箇所』のソースではなく、動かないページのソース全体を見せて頂かないといけません。 何故なら、ご本人が問題であると認識されている箇所以外に原因がある可能性があるからです。 <!DOCTYPE> <HTML> <HEAD> <META charset=UTF-8"> <TITLE></TITLE> <link rel="stylesheet" href="http://daneden.github.io/animate.css/animate.min.css"> <script src="http://mynameismatthieu.com/WOW/dist/wow.min.js"></script> <script> new WOW().init(); </script> <style> #section2 { width:100%; height:100%; background-image:url(img/section02_bg.png); background-position: 50% 50%; background-size: cover; /* 背景画像をフルスクリーン表示 */ } .sec2_txt01 { width: 40%; margin: 0 0 0 0; } .sec2_txt01 p { color: #666; } </style> </HEAD> <BODY> <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> </BODY> </HTML> ちなみに最小構成で該当箇所を構成したら動きましたので、該当箇所以外に問題があるように見受けます。
ic_egawa

2016/03/02 04:36

すみません。ソース全体を載せました。 これ以外のcssやjsは公式サイトからダウンロードしたままの状態です。
lazyeyed

2016/03/02 05:14

確認いたしました。 ※ソース内にクライアント様名らしきものが乗ってますので、公開する際はNDA情報に気をつけて掲載ください。 結論から言いますと、wow.jsとfullpage.jsは同時には使えません。 海外の方で同様にスタックしている方の解答も見つけましたので参考に。 http://stackoverflow.com/questions/30736025/use-of-wow-min-js-with-jquery-fullpage-js ローカル環境でも現象確認し、状況から原因を特定しましたが、 wow.jsで、要素が表示されるまでの判定キーとして、スクロールに関するエレメントから取得を試みているようで、fullpage.jsがそのスクロール値の取得をwow.jsにとって阻害する形となっています。 jsモジュールを弄るのはかなりの手間がかかるので、代替となるjsを見つけていただくことをお勧めします。
ic_egawa

2016/03/03 00:53

そうなんですね。 ありがとうございます。 探してみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.29%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問