Jump to content


animation not seamlessly repeating

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 am having an issue getting my animation to seamlessly repeat. It seems like there is a delay between repetitions, rather than smoothly repeating each iteration. 

See the Pen xLoQzX?editors=1111 by team (@team) on CodePen

Link to comment
Share on other sites

HI @ahappe01


Welcome to the forum.


That slight delay is coming from your first tween. You're animating from x:0, but it's already sitting at 0 so it looks like nothing is happening. You'll notice a slight delay before the first iteration starts too - same reason. I think by removing that first tween on the timeline, you'll see the desired outcome. Happy tweening.


  • Like 2
Link to comment
Share on other sites

Hi! Thanks for the advice. However that doesn't appear to be it. I added the "from" in attempt to solve the problem. So I removed it again and the issue is still happening. (feel free to mess with the pen if you would like).

I have also tried to animate x to "-10". I have also noticed that when I apply yoyo, the transition betweened animations is smooth and what I want, only I don't want the yoyo functionality. 

I am new to GSAP and I have tried for hours googling and researching this issue. I don't know if I am using the correct verbage to describe what is going wrong. 

Link to comment
Share on other sites

O.k. - now what you're seeing is the easing. Your last tween on the timeline eases out and the first one eases in so it looks like a delay. Try a Linear.easeNone on all the tweens and you'll see that there is no delay. 


Happy tweening.


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