How to toggle hamburger close interaction when clicking an anchor link on a full-screen menu

Hi everyone,

I have a full-screen menu on the tablet and mobile breakpoints which contains an anchor link via the “Work” link block.

When clicking the “Work” link it currently scrolls to the right section, however does not initiate the menu close interaction I have inserted.

I read on other forum posts that I might need to add some custom javascript to the site, however I’ve tried certain code snippets and they have not worked so far.

Would someone be able to help me out or maybe provide the right custom javascript that would be right for my site?

Here’s my read only link: Webflow - Portfolio

Thanks a lot,