I am trying to get the text to scroll at the same speed as its parent div (which scrolls at a speed of 1/10). Currently, it scrolls at normal speed. What am I doing wrong?
HTML:
<div id="blank" class="page">
<p>blah blah blah</p>
</div>
CSS:
body { background:url(images/background.gif); }
.page { overflow: auto; width: 580px; color: white; }
#blank { background: url(images/02.jpg) 50% 0 no-repeat fixed; height: 2300px;}
JS:
$('#blank').parallax("50%", 0, 0.1, true);
$('#blank p').parallax("50%", 0, 0.1, true);
source
share