Jump to content
Search Community

Issue with tween on mousemove

AsKadir test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Hi!

I tried to recreate the navigation https://www.steven-hanley.com/

So now I have in my codepen working example,

The problem is when deltaX is 0, the animation starts to kill itself in a tick because of overwrite: true.

 

My question is - is it possible somehow kill animation with smooth decay?

I mean when my deltaX is 0, the tween should animate position of x to 0 with duration, not immediately.

 

Thanks in advance!

See the Pen RwRRaOv by ChicagoJostik (@ChicagoJostik) on CodePen

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