Sidemenu on specific div


I’m looking for a sidemenu system like ionic provides, but only on specific div, not the full page.

When I insert sidemenu code into my div, it generates a full width and height div that overpass my original div. I thought it was relative to the parent div position, but it doesn’t.

How can I do such thing ?

Thanks in advance !