Jump to content
Search Community

ScrollSmoother breaks my layout

techdevil test
Moderator Tag

Recommended Posts

Hello,

 

Here is my structure
 

<body>
  <div class="page-wrapper">
      <main class="main-wrapper">
          <section class="section_intro">THIS CONTENT IS: POSITION FIXED</section>
          <div class="content-wrapper">THIS CONTENT PASSES OVER section_intro TO SCROLL</div>
      </main>
  </div>
</body>

 

I made a codepen. You can see that my fixed section is offset. If you remove "content: '.main-wrapper'" from js code, it's work but not with the scrollSmoother.

 

Can you help ? 

 

Thank you

See the Pen LYqpGEX by jimmylet (@jimmylet) on CodePen

Link to comment
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.
×
×
  • Create New...