Jump to content
Search Community

Grid Layout Transition to horizontal slideshow

gsapnooby test
Moderator Tag

Recommended Posts

I am trying to create an animation where grid tile will expand take full width and become horizontal slides. But as you see in the codepen, only part of the animation is working. 

 

Animation sequence 

1. Section text moves away to the left

2. While section text is moving away to the left Div A expands and take the full width. Meanwhile Div B and Div C moves aways to the right without getting rezied 

3. Div A, Div B and Div C appears one by one on scroll  

 

I took the code from this codepen to create horizontal slides but that's not working either

See the Pen MWBMxwy by yumelabs (@yumelabs) on CodePen

Link to comment
Share on other sites

Hi there,

 

I think making a master timeline is muddling things a little.

Master timelines are great when you have a really long timeline made up of separate parts that's starting to be hard to understand.
This is a good example

See the Pen eYzOBGq?editors=0010 by cassie-codes (@cassie-codes) on CodePen


Also - You shouldn't nest Scrolltriggers.

Right now you're adding timelines with scrollTriggers, to a master timeline that's controlled by a scrollTrigger. That's going to cause issues.

What I would suggest is to create a timeline that does what you want first without ScrollTrigger - Then add scrollTrigger. Here's a starting point.

See the Pen qByexJR?editors=1010 by GreenSock (@GreenSock) on CodePen



Don't copy paste code from different codepens, try to work out what you need for your specific use case. 

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