Jump to content
Search Community

ScrollTrigger - The pin spacer element add a padding bottom on the end of my scroll if i've two same components.

Charlène Bonnardeaux test
Moderator Tag

Recommended Posts

Hi!

 

I tried, without result, to reproduce a bug that I encounter in my application:
When two identical components running the same animation for its content follow each other and I scroll to the end of the second component, the "pin spacer" is updated and adds a padding bottom the size of the scroller, which gives the impression that it "jumps" above the viewport.

In the code pen, I tried to reproduce the same structure, but without the same effect. Does anyone have any idea what could cause this?

 

I know, it's not easy without a demo of the bug... But i swear i've tried, and because i don't exactly know what can cause it... I'm not able to make a correct minimal demo for isolate my issue... Any supports will be great!

Thanks in advance :)

See the Pen BarvQpo by charlene-bx (@charlene-bx) 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...