Skip to content

Commit

Permalink
Create script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirajkumar20 committed Apr 24, 2024
1 parent 2df5a6d commit 3bc8987
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function toggleMenu() {
var menuIcon = document.querySelector('.menu-icon');
var topNav = document.querySelector('.top-left');
topNav.classList.toggle('active');
menuIcon.classList.toggle('active');
}

0 comments on commit 3bc8987

Please sign in to comment.