This version is old school.
Please find jQuery plugins on npm.
jQuery mb.extruder
This plugin lets you easily build a sliding panel for any kind of content; it has all the functionalities built-in for menu and sub-menu panels with an accordion effect, and you can get the content via ajax.