How to call function on Webflow interactions

Dear Webflow,

My experience with your service is great. It really helped me to enter the world of web development. I’m very comfortable to make almost all html and css in Webflow and then to edit with custom js.

So now i need to understand how i can, for example, to make functions on navbar-open and navbar-close. I need this because i made navbar openning with Webflow interactions and i want to call some custom jquery code when it happens. I tried to look and webflow.js file but you have especial syntax i suppose))

By the way, i wanna ask you make some kind of API documentation, because it’s really useful to make all pre-work in Webflow and only then to make leftover front-end. I think, not only me thinks about that.

Thank you!