Html+jQuery : How movable (drag) content of div?

372 views Asked by At

I have a parent div which is 150 * 150px and a child div which is 3000 * 3000px.

I want move the child inside the parent div, like this:

https://i.stack.imgur.com/tmy5u.gif

How can I do this?

1

There are 1 answers

0
Aabid On BEST ANSWER

Yo can do that with jquery
$("#child").draggable({ containment: 'parent' });