Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

GSAP pin sidebar with button not working

Recommended Posts



I'm trying to add button on each section. I realise that the "Section 1" button unable to click, "Section 2" able to click.

Do you guys have any idea on how i should write on the code part ?

Appreciate if you can advice

See the Pen VwPGPYv by zenithlai (@zenithlai) on CodePen

Link to comment
Share on other sites

That's just a stacking thing in the DOM - you've got another element sitting on TOP of that one which is intercepting pointer events. 


I noticed you're animating autoAlpha of the child "article", but I'd just do that to the parent element instead so that it has visibility: hidden (and thus doesn't intercept pointer events):

See the Pen 32928a1da17fee8e1ae202de4d0d4189?editors=0010 by GreenSock (@GreenSock) on CodePen


Is that what you were looking for? 

  • Like 1
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.