Jump to content
Search Community

Cursor Animation

SaifUllah test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

  • Solution

Hi,

 

Yep I see the issue. This seems to work as expected:

window.addEventListener("mousemove", e => {
  xTo(e.clientX);
  yTo(e.clientY);
});

The support for the clientY value seems to be pretty solid, so you shouldn't run into any issues with it:

https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY#browser_compatibility

 

Hopefully this helps.

Happy Tweening!

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...
On 3/28/2023 at 8:08 AM, GreenSock said:

The technique used in that CodePen seems rather clunky and not optimized for performance. This is probably a good use case for gsap.quickTo(). See the docs at https://greensock.com/docs/v3/GSAP/gsap.quickTo()

 

Here's a quick demo from the docs: 

 

 

Yes, it does. Thank you for helping me out. You made my day  By the way, If you are looking for the best essay writers who can write your essay then you can try here In this website you can see many essay samples which help me to write your essay and I also can read the samples here for free.

Does that help?

Yes, it does. Thank you for helping me out. You made my day :)

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