This is the link for reference.
http://readwrite.com/2013/02/07/robert-scoble-favorite-apps-facebook-gmail-youtube
in this section, the Center and the right section scroll simultaneously, if we scroll the center section ...
I am doing this with this code: -
this is the html code: -
<div id="left" class="linked"> <img height="600" src="http://www.visitingdc.com/images/eiffel-tower-picture.jpg"> </div> <div id="right" class="linked"> <img src="http://www.visitingdc.com/images/eiffel-tower-picture.jpg"> </div><br>
Script: -
$(function(){ $('.linked').scroll(function(){ $('.linked').scrollTop($(this).scrollTop()); }) })
CSS: -
<br>#left { width: 300px; height: 400px; overflow: scroll; float: left; } #right { width: 300px; height: 400px; overflow: scroll; float: left; }
but I have one small problem.
on the above site simultaneously scroll, but the right side scrolls slowly, how does it work ...?
Please help me...
javascript css scroll parallax
user2017104
source share