jingran Posted May 4 Share Posted May 4 Hi, I started using gsap recently. and I have question about scroll and pin. in the code, I want to pin panel1 and when I scroll down the panel2 section flow over pinned panel1. because I want to show the content of panel2 while scrolling but I don't want pin panel2 like panel1. Right now I cannot see panel2. How can I fix this? thanks! See the Pen rNbERZV by jingran-zhou-itsJingran (@jingran-zhou-itsJingran) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted May 4 Solution Share Posted May 4 If I understand your goal correctly, that's just a CSS thing - for an element to have a stacking order like that, it must have position: relative (or something besides static). See the Pen BaEgEOB?editors=0110 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
jingran Posted May 4 Author Share Posted May 4 @GreenSock Thanks! that's exactly what I want. I guess I should learn more about CSS later. 1 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