Jump to content
Search Community

How To Use ScrollTrigger scale texts

Harishjee test
Moderator Tag

Recommended Posts

Hi @Harishjee welcome to the forum!

 

 

I had to move some things around in your HTML, CSS and JS. I've created a timeline of your animation (seen that you want to animate two things, a timeline is the best use for that) and instead of having a separate ScrollTrigger I've it integrated in the timeline, so now it is one object that controls the whole timeline. 

 

I'm not sure what you want the animation to do, but keep in mind: the best thing to do when working with ScrollTrigger is to remove it! This seems counter intuitive, but ScrollTrigger is just animating something on scroll, so just focus on the animation at first and only when you're happy with the animation add ScrollTrigger back in. This way you can focus on one part at a time and it will save a lot of headache when debugging. 


Check out this tutorial how to work with ScrollTrigger 

 

 

Hope it helps and happy tweening! 

 

 

See the Pen LYqpMpJ?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

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