Jump to content
Search Community

free space between pinned sections

artstyle test
Moderator Tag

Recommended Posts

Hey @artstyle

 

What do you mean with 'too much white space' and 'the pin problem'?

 

If you comment out all your js, I don't see there being too much white space - looks quite balanced to me

 

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

 

I think it is just a matter of perception, because the part where the content is supposed to be, is initially blank, before you get there.

 

 

 

Since you seem to be animating each of your sections from invisible at first, to visible on enter and the other way round when leaving, anyways, what you could consider is positioning all of your seections absolute - stacked above each other on the z-axis so to say, and only animate in the section, you want to be visible - this way you would have more control over the 'whitespace' in between.

 

Here is an example of what I mean:

 

See the Pen 97b394ab371e8fa72803508f89d7ae29 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...