jquery - parallax, scrolling background of a single div -
<div id="first-div" style="width:960px; height:1200px;"> <div id="second-div" style="width:500px; border:solid 1px; height:30px; background:#333;"> scroll background </div> </ldiv>
here div code , want move background of second div left right, when first div scroll down.
detail: @ beginning second div background should white when first div scroll down ,second div's black background should appear left right using css3 or jquery.
Comments
Post a Comment