Jump to content
Search Community

GSAP Marque with Events

TerraHQ test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

  • Solution

Hi,

 

Actually I don't think you need the onComplete callbacks in your mouse enter/leave event handlers, just tween the timeScale to 0 and 1 and that should be it. Also instead of creating the animation paused, set it's timescale to 0. This seems to work as you expect:

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

 

Also you should take a look at the Horizontal Endless Loop helper function:

https://greensock.com/docs/v3/HelperFunctions#loop

 

Let us know if you have more questions.

 

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