Jump to content
Search Community

SplitText jerky transition

ektorp test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have a header animation using SplitText. There are 2 main steps to this header animation. The header letters first animate 'y' into place and then when it is complete it does a wavy text animation effect. It is technically working but the transition from step 1 to step 2 is a bit rough and jerky. I've tried making small adjustments to the pixel values but nothing seems to be working quite well. Can anything be done to smoothen the experience?

See the Pen f84dd07564391b8c82f442734dfab2bf by bdang (@bdang) on CodePen

Link to comment
Share on other sites

Hi,

 

Mainly the issue has to do with the values applied to the letters.

 

When you make the first animation, the letters go from 100 to 0, so far so good. Then on the wavy animation you animate the letters from -5 to 5. So basically when the first animation ends, the letters value of Y is 0 and when the second animation starts, the value of Y is -5 and that change happens immediately, so that's the jump you're seeing.

 

What you could do is create a tween that moves the letters from 0 to 5 and then the endless loop that goes from 5 to -5, in order to avoid the jump.

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