Jump to content
Search Community

Using ScrollTrigger Empty white space below div

DavidRiches test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

 

Hello @DavidRiches

 

I think it is more of a styling issue. Your slides are just adding to the height of the container and since you are then tweening them upwards what you will see in the end ist just all that white space where earlier the slides would have been on the right side. 

 

Suggestion: Remove the flex on your .timeline-slides and add a height of 100vh and overflow: hidden

 

.timeline-slides {
  // display: flex;
  // flex-direction: column;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
}

 

See the Pen yLvZGPj by akapowl (@akapowl) on CodePen

  • Like 3
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...