Jump to content
GreenSock

Andy777

SplitText scale transformation

Recommended Posts

Hi,

 

How can i scale to 1 each words when it reach scale 2 instead of waiting the scaling of all words to be scaled to 2 then to 1?

 

Thanks in advance!

See the Pen XWqyVYo by Andy199807 (@Andy199807) on CodePen

Link to comment
Share on other sites

Hi,

 

You could use a from() instance in order to go from any scale you want to the natural value the elements have when the GSAP instance is created.

https://greensock.com/docs/v3/GSAP/gsap.from()

 

Hopefully this works the way you intend:

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

 

Let us know if you have any other question.

 

Happy Tweening!

Link to comment
Share on other sites

I found the solution @Rodrigo using the stagger object with repeat: -1 to avoid waiting all chars finish animation.

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