jQuery draggable - drag guide line contaiment -


i got 3 divs rectangles. 1 @ top right, second on bottom right, third on bottom left.

all of them same size , have same distance between them , of them draggable.

i want connect 3 divs lines (this make triangle), , make user drag divs along these lines. top right div draggable down, bottom right div draggable left, , bottom left box draggable top @ angle of 45 degrees.

just wondering if can done jquery or jquery plugins? saw similar stuff being done using svg, seemed complicated achieve im trying here.

any suggestions?

edit: know there restriction drag axis (this solve restrict down , right problem), there way restrict xy @ 45 degrees?


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -