Streaming live at 10am (PST)

Help with replacing hamburger icon with close icon when menu is open

Hi everyone,

I’ve been using Webflow for a while, and found ways to do some pretty cool stuff. There is 1 thing I’ve been struggling with for several days now, and I’m assuming the solution could be simple, so would love to get some help from the community.

I have 2 svg icons, I’d like to show one when the menu is closed, and another one (similar but with X) when the menu is open.
The icon for menu closed is in the “hamburger button” div, the other one in the “hamburger button closed” div.
They are within a “hamburger menu” symbol, so I can re-use it as part of another header (with some additional items in the header).

I found this reference (How to customize your hamburger menu in Webflow | Webflow Blog), but couldn’t make it work (it’s also outdated).

Thank you in advance!

Here is my public share link: Webflow - Live The World

Hello Joris,

I used this tutorial from pixelgeek on how to change it by using a lottie animation How to Webflow: Replacing the hamburger menu icon with a Lottie animation - Tutorial (2019) - YouTube

In case you don’t want a lottie animation, I still think the tutorial may be useful because of the first and second click animations that sound like a solution to your problem.

Hope this helps !

Thank you so much for your help, @PixZen ! I could make it work with an easy on-click animation indeed.

1 Like