Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

setters getters (e.g. setX, getX) detection is broken?

Recommended Posts

I used the auto-detection of getters and setters to tween certain numbers, which I got the idea to do from this forum post 



However, this no longer seems to work in GSAP 3. Any ideas?

Broken in GSAP 3:



Working in GSAP2:

See the Pen jOORZbM by karldougie (@karldougie) on CodePen

Share this post

Link to post
Share on other sites

Yep, here's another option (same general idea): 

See the Pen 64913f1ea7154fe340abf33e7e3861e5?editors=0010 by GreenSock (@GreenSock) on CodePen


The whole thing about methods that start with the word "get" or "set" seemed kinda old-school and I didn't think it was worthy of taking up kb in GSAP 3 since you could so easily accomplish it in other ways. Sorry if any of that was confusing. 

  • Like 2

Share this post

Link to post
Share on other sites

@GreenSock I think it is great to move towards standard javascript syntax, and I'm really happy with the reduced size of GSAP! 

  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.