Jump to content
GreenSock

idee-design

animate text in a wave

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

Hi,

 

I'm new to GSAP and doing my first, little, private project. What I want to do is to animate a text like a wave, so every letter goes up and down and the animation is overlapping with the next letter.

 

It already works, but only once. When I try to reapeat it, the letters all start from the top-position and just "fall down". But at the end of the first sequence, all letters are at y=0. So why do the start the next sequence on y=-20?

 

I hope you can help me. I thought this would be easy, but I can't find my error.

 

Thanks,

 

Michael

See the Pen PqWooM by idee-design (@idee-design) on CodePen

Link to comment
Share on other sites

Hi idee-design :)

 

try this : 

var tl=new TimelineMax({repeat:3,repeatDelay:1});

tl.staggerTo(".char",0.3,{y:-30,ease:Power2.easeInOut,repeat:1,yoyo:true},0.05);
  • Like 1
Link to comment
Share on other sites

Hey, this is great. Thanks a lot for this superfast answer. Great community.

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