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: https://preview.webflow.com/preview/tobycarpenter?utm_medium=preview_link&utm_source=designer&utm_content=tobycarpenter&preview=9a08302825c8fbf65c695940e89ff5bf&workflow=preview

Thanks a lot,
Toby