Issue with codepen responsive menu code with wordpress

The responsive menu in the following codepen works well as it is. But if I use wp_nav_menu() instead of the ul, li in the code it does not work (menu does not open). Any advice how I can use it with wp_nav_menu()? Thanks.