0

私のウェブサイトの一部の要素で skrollr を使用すると問題が発生します。背景では機能しますが、テキストで div をフェードインおよびフェードアウトしようとしていますが、機能しません...何か間違ったことをしているに違いないので、問題を示すために jsfiddle を作成しました。うまくいけば、誰かが私が間違っていることを理解しています。

HTMLコード

<div class="container" id="test">
  <div class="section"></div>
</div>
<div class="container" id="info">
  <div class="section-wrapper">
    <div class="row section" data-center="background-position: 0 50%;" data-bottom-top="background-position: 0px 40%;" data-anchor-target="#info">
      <div id="info-wrapper" class="col-md-6 col-md-offset-5" data-center="opacity: 1" data-bottom-top="opacity: 1;" data-anchor-target="info-wrapper">
        <h2>Test</h2>
        <p>This text isn't fading in or out... What is wrong?</p>
      </div>
    </div>
  </div>
</div>

CSS

html {
overflow-y: scroll;
}

.navbar {
opacity:0.9;
filter:alpha(opacity=90); /* For IE8 and earlier */
}

#top-nav .active {
border-bottom: 3px #643b8d solid;
}

.section {
/*margin-top: -50px;*/
padding-top: 50px;
margin: 10px 0;
}

#test .section {
background:url(http://ihatetomatoes.net/demos/parallax-scroll-effect/img/bcg_slide-5.jpg) no-repeat center;
background-size: cover;
background-attachment: fixed;
height: 750px;
width: 100%;
position: relative;
}

#info .section {
background:url(http://ihatetomatoes.net/demos/parallax-scroll-effect/img/bcg_slide-5b.jpg) no-repeat center;
background-size: cover;
background-attachment: fixed;
height: 750px;
width: 100%;
position: relative;
}

#info-wrapper {
background-color: rgba(255,255,255,0.75);
opacity: 0;
}

例はこちら

ありがとう

4

1 に答える 1