Jump to content
Search Community

onScroll section stack and fill color then section release.

Moktubat

Recommended Posts

Posted

Hi @Moktubat and welcome to the GSAP Forums!

 

In your demo the styles are completely off:

47fr7VT.png

Perhaps these demos can help you getting started:

See the Pen wvZqwyg by GreenSock (@GreenSock) on CodePen.

 

See the Pen pomvabo by GreenSock (@GreenSock) on CodePen.

 

I know that these demos are not exactly what you're looking for, but the idea is the concept behind them, how to setup something using a single Timeline that then is scrubbed using ScrollTrigger.

 

Hopefully this helps

Happy Tweening!

 

 

Posted

Hi,

 

I would strongly recommend you to learn about CSS Grid and/or Flexbox in order to be able to create the layout you're looking for. The GSAP part of this might be the simplest one, but getting the layout right is critical:

https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout

 

Also these videos can help as well:

 

 

Probably there are hundred of more free videos in youtube and other articles and free tutorials on the subject in the web.

 

Good luck with your project! 👍

Happy Tweening!

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