Jump to content
Search Community

Change text size using timeline and Scrolltrigger

Forpee test
Moderator Tag

Recommended Posts

 

Hey @Forpee

 

I made a demo some time ago that might help you get started with this.

 

See the Pen 85fd1433b311d0197397addc90617a77 by akapowl (@akapowl) on CodePen

 

 

What I'm doing there is pinning the relevant section for a specified amount of scroll ( happening in the lineTimeline - of course you wouldn't need an animation attached to that if you don't need one) and then forEach of the text/headline-elements create a ScrollTrigger with an equal scroll-duration (the afore-mentioned specified amount of scroll for the pinning devided by the number of texts/headlines) offset in their starts by that amount times the index of each text/headline-element.

 

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