|
|
@ -50,6 +50,21 @@ |
|
|
|
curve : { width:4, color:"#333", cap:"round" } |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// scroll |
|
|
|
$(document).ready(function() { |
|
|
|
$('#slider').bind('slide.pathslider', function(event, slider){ |
|
|
|
var scrollPos = slider.percent * ( $('#curve')[0].scrollHeight - $(window).height() ) / 100 |
|
|
|
$('#curve').scrollTop(scrollPos); |
|
|
|
}); |
|
|
|
|
|
|
|
$('#slider2').bind('slide.pathslider', function(event, slider){ |
|
|
|
var scrollPos = slider.percent * ( $('#curve')[0].scrollHeight - $(window).height() ) / 100 |
|
|
|
$('#curve').scrollTop(scrollPos); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<div id="curve"> |
|
|
@ -131,4 +146,3 @@ |
|
|
|
</div> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
|
|
|
|