Jump to content
GreenSock

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

Scroll Trigger pin messing up modal position

Recommended Posts

Hi, 

 

I'm looking for help regarding scroll trigger and items positioned fixed within a pinned section. I'm having an issue where I have a modal that needs to stay in window view once it's open, but it looks like it's being positioned relative to its pinned parent and I'm able to continue scrolling as normal. 

 

Hoping someone would be able to help me out!

See the Pen xxVjmEw by shielaNFA (@shielaNFA) on CodePen

Share this post


Link to post
Share on other sites

And If you want to also disable all window scroll when modal is open, might be a simpler way 

See the Pen jOqxXQj by Visual-Q (@Visual-Q) on CodePen

  • Like 5

Share this post


Link to post
Share on other sites

Looks like I was overcomplicating it. Haha thanks! 

Share this post


Link to post
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.

×