Jump to content
Search Community

How can I use quickSetter() or set() to improve the performance of that code?

bs.choi test
Moderator Tag

Recommended Posts

Hi.
I made a custom cursor with gsap.TweenMax.

However, looking at a few examples, they are created using set() or quickSetter().

The official documentation says there is a performance difference, so I would like to improve the performance.

But I'm not sure how to refactor it. (I want to keep the function as it is)

Please advise.
thank you.

 

https://jsfiddle.net/5dpzhfe0/28/

Link to comment
Share on other sites

@OSUblake 

I saw an example and implemented it.

However, additional elements are moving at the same time.

Is this method wrong?

I've looked at the official documentation, but I don't know how to add duration or delay.

I want to make a clean and fast (without a lot of easeing) function like the example I asked in the first question.

https://jsfiddle.net/b5t9jxh6/4/

 

gsap is so amazing and awesome but still too hard for me....

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