Menu animation leaving 'ghost' behind

Hey folks,

I’m trying to set up a custom navbar on this test portfolio site, and I wanted to use a dynamic menu hamburg I had in my files. I set the div in an embed in the navbar, and saved the js in the page custom code. When I publish, the animation works, but there is a ‘ghost’ button left behind.

Check this codepen for how it should work (same code): https://codepen.io/swagnerb/pen/WNOEeWz

Any help would be greatly appreciated!


Here is my site Read-Only: https://preview.webflow.com/preview/portfolio-9c18f6-4e94e67a-68af377abf13b?utm_medium=preview_link&utm_source=dashboard&utm_content=portfolio-9c18f6-4e94e67a-68af377abf13b&preview=210b0061df51060e0d1671e0a6d9dcac&workflow=preview

Published site: https://portfolio-9c18f6-4e94e67a-68af377abf13b.webflow.io/