How do you animate menu with framer motion on-click?

(Using React obviously + Gatsby)
I have a hamburger button that gonna open a nav-menu in my website.
I wanted to know how to make the menu open with an animation using Framer Motion.

Source: Ask Javascript Questions

LEAVE A COMMENT