Banddev Posted September 12, 2023 Share Posted September 12, 2023 I would like to use scrollsmoother and I have a footer with position fixed. the main tag with a bigger z-index so it can be above the footer. this is a simplified working example of what I would like to achieve without scrollsmoother > See the Pen MWZmqMo by mp1985 (@mp1985) on CodePen I tried to add scrollsmoother and to play around with it, but I was not able to achieve the same thing. I tried to move the fixed element outside scrollmoother div, and play around with the bottom, the margin-bottom and the position proprieties but no luck > What I am doing wrong? could you please point me in the right direction? thanks See the Pen ZEVKqQv by mp1985 (@mp1985) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted September 12, 2023 Share Posted September 12, 2023 Hi, I'm far from being a CSS wizard, so this is the best solution I can come up with: See the Pen PoXmxzJ by GreenSock (@GreenSock) on CodePen Is not elegant but it works 🤷♂️ Hopefully this helps. Happy Tweening! 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