i use a long gray pane which can be draggable and i have a window to over the pane. the window is overflow:hidden; on the pane. then how can I drag the pane without the white part and the pane can bounce if it can't be drag? the effect i want is like the timeline bar in following web:
http://world.time.com/2013/12/05/nelson-mandelas-extraordinary-life-an-interactive-timeline/
(when i drag too many left or right, it will bounce itself. so the white part won't appear)
thank u :)
PS. i try to use the draggable but i don't know how to do this~
HTML
`<div class="window" style="width:1000px;height:200px;overflow:hidden;">
<div class="pane" style="background:grey;width:4000px;height:200px"></div>
</div> `
JS
JS
`$('.pane').draggable({
axis:x;
});
`