Hamburger menu to X

For the life of me I don’t understand why they doesn’t offer a “hamburger to X” option on the navbar.
I’ve spent time tonight trying to build a transition on the menu icon. I’ve tried changing it in Pressed and/or focused states. no success whatsoever. ugh.

here’s the link to the site in messy progress:

here’s a link to the test page… that isn’t working. :frowning:

Is there any easy way to build a menu hamburger icon that switches to an “X” when the menu is opened…
that when re-clicked… closes said menu? Help please.


Hi @scottbarbey I actually made a little tutorial on how to build animated hamburger menu button buttons:

You’re also welcome to clone this project to play around with the hamburger menus or use one for your own site:

There’s an interaction trigger in Webflow for Navbar Open and Close states which is very powerful for building custom nav interactions :smiley:


Waldo- you are a king amongst men. Thank you greatly


Waldo - any suggestions on how to scale the build if i want a smaller
“menu/X close” in mobile…?

@scottbarbey thanks again for reaching out, I’m not sure I quite understand what you mean by scaling the menu button/close on mobile? Maybe try adjusting the scale of the button itself, or putting the hamburger lines into a parent div which you then scale inside of the button but only on mobile. Difficult to say without a Read-Only link to your site. Could you please share your Read-Only link and where you’re building the menu?

Thanks in advance! :slight_smile:

think I worked thru my needs on this. thanks as always.
I have a hamburger that animates to an X and I couldn’t be happier.

thanks Waldo!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.