Jump to content
Search Community

Vuejs loop animation infinitely

James07 test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

  • Solution

Hi @James07 and welcome to the GreenSock forums!

 

Indeed a single timeline is the way to go in this case, just need to add the animation for each block on a loop without any delays and then, after the loop, add the blink animation to the same timeline.

 

Here is a fork of your example:

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

 

Also notice that I used GSAP Context in this case, which makes cleanup when a component gets unmounted super easy and also has a few other perks that are worth exploring and using in Vue Apps and Vue environments:

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

 

Hopefully this helps. If you have more questions let us know.

Happy Tweening!

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