/ Hamburger Menu

Simple Navbar Toggle To X

Simple Navbar Toggle To X

Simple Navbar Toggle to X (Vanilla JS)

A simple CSS and JS solution to make a standard Navbar “hamburger” into an X on click, and then back to a hamburger when clicked. Requires no dependencies, written with vanilla JS.

Made with

Html
Css
JavaScript

Author

Joseph Gengarella

Demo

See the Pen Simple Navbar Toggle to X (Vanilla JS) by Joseph Gengarella (@Wyrlor) on CodePen.

CodeTea

CodeTea

A Nice collection of often useful examples done in HTML JavaScript CSS.

Read More