I saw this effect here. The main content section of the page moves over and above a div when the page is scrolled.
I tried recreating this effect using the parallax effect,but in vain.The issue is that using parallax,i can change the speed of 2 objects within the same div only.Also apart from that,i will have to put some unncessary tags all over the page to make the script work.
Is there a simpler(or working) way to achieve this effect?Thanks a lot
You can do this with CSS.
And to make subHead scroll slower:
jQuery:
There definitely seems to be some parallax going on at least. I haven't looked through the markup thoroughly enough, but one thing of note is that the area with the graphic and the content area (along with the area for the ads) are sibling
<div>
s.Just top of head, with some CSS
position
ing andz-index
ing, it'd be a bit straightforward to render the content<div>
above the graphic<div>
. It seems that only the graphic<div>
is being controlled via parallax scrolling. If that makes sense.You could attach onscroll event for your first div and set scroll position of second div in your JS.
javascript:
More info in here: http://help.dottoro.com/ljurkcpe.php http://help.dottoro.com/ljnvjiow.php