ShesADev Posted September 12, 2020 Share Posted September 12, 2020 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 Link to comment Share on other sites More sharing options...
Visual-Q Posted September 12, 2020 Share Posted September 12, 2020 Don't put the modal in the parent. See the Pen eYZrbLN by Visual-Q (@Visual-Q) on CodePen 4 Link to comment Share on other sites More sharing options...
Visual-Q Posted September 12, 2020 Share Posted September 12, 2020 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 5 Link to comment Share on other sites More sharing options...
ShesADev Posted September 12, 2020 Author Share Posted September 12, 2020 Looks like I was overcomplicating it. Haha thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now