matashaEs Posted October 20, 2022 Share Posted October 20, 2022 Hi, I started using the plugin ScrollSmoother, and I have a question. Can I fix an element without taking it outside "smooth-content" and "smooth-wrapper"? Thank you in advance. See the Pen dyeBzON by matashaEs (@matashaEs) on CodePen Link to comment Share on other sites More sharing options...
alig01 Posted October 20, 2022 Share Posted October 20, 2022 Hey, Maybe I'm wrong, but try this out and tell me if this is what you are looking for. ScrollTrigger.create({ trigger: ".position-fixed", start: "top top", end: "+=500 top", pin: true, markers: true }); In addition, I would recommend you explore the demos to see how they do it there. That's always a good starting point along with the documentation. 3 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