|
|
@ -55,12 +55,12 @@ |
|
|
|
$(document).ready(function() { |
|
|
|
$('#slider').bind('slide.pathslider', function(event, slider){ |
|
|
|
var scrollPos = slider.percent * ( $('#curve')[0].scrollHeight - $(window).height() ) / 100 |
|
|
|
$('#curve').scrollTop(scrollPos); |
|
|
|
$('#curve').stop().animate({scrollTop: scrollPos}, 200); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#slider2').bind('slide.pathslider', function(event, slider){ |
|
|
|
var scrollPos = slider.percent * ( $('#curve')[0].scrollHeight - $(window).height() ) / 100 |
|
|
|
$('#curve').scrollTop(scrollPos); |
|
|
|
$('#curve').stop().animate({scrollTop: scrollPos}, 200); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|