how can I create a context menu

Hi every one !
I would like to create a vertical slide contextual menu. can you help me start it please ?