ページを下にスクロールすると、次の DIV が前の DIV の上にフェードするようにするにはどうすればよいですか?
私はそれをよりよく説明するためにこのフィドルを設定しました: http://jsfiddle.net/meEf4/176/
たとえば、ページの途中にいる場合、背景は青です。
編集: 爆発して誰かが同様の問題で立ち往生している場合に備えて、その jsFiddle の内容を次に示します。
<style>
html, body, #red, #green, #blue { height: 100%}
#container { height: 300%}
#red, #green, #blue {
position: fixed;
top: 0;
width: 100%;
}
#red { background:red; z-index: 5}
#blue { background:blue; z-index: 4}
#green { background:green; z-index: 3}
</style>
<div id="container">
<div id="red"></div>
<div id="blue"></div>
<div id="green"></div>
</div>