-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support property anim, based on timeline #368
base: main
Are you sure you want to change the base?
Conversation
r.fadeOut.Step(min) | ||
} | ||
|
||
goto CHECK_FADE_OUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not use goto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most cases, the use of goto should be avoided. The exception is when it is the only clear and concise way to handle control flow. By ensuring that all cases ultimately check for a fade-out condition, the control flow remains clear and understandable.
return nil | ||
} | ||
|
||
func (t *Tweener) From() ITweener { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a clone function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a clone function. It's a reverse version of t.
25b7e8f
to
78d4186
Compare
Add timeline and property animation (tweener animation)