Jump to content
Search Community

horizontal layer pin

Sukru test
Moderator Tag

Recommended Posts

Hello, I have two problems with horizontal pin scroll. First of all, the atrium is now in place and as it should be, but when the atrium is done, it should be attached to the left, I could not achieve this. The second problem is that the width of the next panel must be 100%. Can you help me with this?
I tried to explain what I actually mean in the example image.

 

See the Pen OJddbMY by sukruemanet (@sukruemanet) on CodePen

Link to comment
Share on other sites

Hi,

 

I'm not 100% sure of what you're trying to achieve so I took my best guess and came up with this:

See the Pen bGzZqBv by GreenSock (@GreenSock) on CodePen

 

Unfortunately I don't have time right now to dig into all your code and make it look like this, but I do believe your setup is far too convoluted IMHO.

 

Hopefully this helps.

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

@Rodrigo What I actually want to do is to place the .horizontal-item divs side by side in the first div with an offset and expand the content area as you scroll. In the example I made, they actually come next to each other, but there is no content expansion. There is a similar example here.
https://www.brooklyneditions.com/ "Services designed to meet the needs of professionals" section. 

Link to comment
Share on other sites

Hi,

 

I believe that this is more related to the initial HTML/CSS setup rather than a GSAP issue to be honest. I would strongly recommend you to completely remove GSAP altogether and focus just on the HTML/CSS, then create a Tween/Timeline that actually does what you're looking for. When you have an animation that actually works the way you intend, plug ScrollTrigger into it.

 

I updated the codepen demo from my previous post so it works in the way the URL you linked does:

See the Pen bGzZqBv by GreenSock (@GreenSock) on CodePen

 

Unfortunately we don't have the time resources to create/fix HTML/CSS structures for our users in these free forums. We have to keep our focus in GSAP related issues.

 

Hopefully this helps.

Happy Tweening!

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...