Jump to content
Search Community

Pin is preventing my menu to show

clhomme test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hello everyone! This is my first topic on this forum, and as you can guess, I'm a newbie to GSAP. I love it tremendously though.

 

So, back at the issue. I'm making my portfolio website, and I used GSAP (ScrollTrigger) in my header. I obviously want a menu (it's a hamburger menu, even in desktop mode), which is made in vanilla javascript. Except it doesn't work. I click and click on my menu icon and the menu doesn't appear like it's supposed to.

 

I've shuffled around in my code, and the main issue seems to be the pinning of the header animation because when I turn to false, the js animation works just fine. But obviously, my header animation doesn't.

 

Does anyone have any idea why this happens, and what I could do to remedy it? I would be very grateful! Thanks!

See the Pen qBMgQam by Dhandelyon (@Dhandelyon) on CodePen

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...