Jump to content
Search Community

Gsap Navbar Menu Problem

mehmettemel test
Moderator Tag

Recommended Posts

Hi mehmettemel,

i have a similar menu with only one button and a toggle switch for state which uses this code:

 

document.querySelector(".toggle").addEventListener("click",
 doCoolStuff);

function doCoolStuff(event) {
console.log("coolstuff");
toggle = !toggle; 
toggle ? action.play() : action.reverse();

}
 

you might be able to use adapt this to your particlular needs.

Link to comment
Share on other sites

49 minutes ago, Richard1604 said:

Hi mehmettemel,

i have a similar menu with only one button and a toggle switch for state which uses this code:

 

document.querySelector(".toggle").addEventListener("click",
 doCoolStuff);

function doCoolStuff(event) {
console.log("coolstuff");
toggle = !toggle; 
toggle ? action.play() : action.reverse();

}
 

you might be able to use adapt this to your particlular needs.

yeah ı  know this method. thanks for response but ı want to use close button separetely :) 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...