Skip to content
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

Ability to specify an animation easing, i.e. curve in a platform-independent manner. #1102

Closed
amjd opened this issue Nov 14, 2015 · 6 comments
Assignees
Milestone

Comments

@amjd
Copy link

amjd commented Nov 14, 2015

It would be great if the platform-specific details could be abstracted in animation, so we could use the universal easing functions such as ease-in, ease-in-out, etc just by passing the name.

Is this possible at present? If not, please consider adding it in the next release.

@hamorphis hamorphis self-assigned this Nov 16, 2015
@hamorphis
Copy link
Contributor

Definitely a good idea. I will do some research for a possible API for this. Thank you for your suggestions.

@hamorphis hamorphis changed the title Animation easing functions Ability to specify an animation easing, i.e. curve in a platform-independent manner. Nov 16, 2015
hamorphis added a commit that referenced this issue Nov 16, 2015
hamorphis added a commit that referenced this issue Nov 17, 2015
Implemented #1102: Ability to specify an animation easing, i.e. curve…
@amjd
Copy link
Author

amjd commented Nov 17, 2015

Thanks for beginning the implementation. Any instructions on how to use it? :) Also, will this be a part of the 1.5 release?

@emiloberg
Copy link

@hamorphis Just out of curiosity, why are you save things like easing in in the enums file? I'm thinking that stuff like easing is never used anywhere else except when creating an animation and could therefor be placed in the animation-common file.

@hamorphis
Copy link
Contributor

@emiloberg That is correct, but the same applies for all other enums. In the beginning of NativeScript we decided to stuff everyting in enums and we do it for consistency, even though I realize that this might have been a mistake :(

@hamorphis hamorphis added this to the 1.5 milestone Nov 18, 2015
hamorphis added a commit that referenced this issue Nov 18, 2015
@amjd
Copy link
Author

amjd commented Nov 25, 2015

@hamorphis Is there a documentation page where we can learn how to use the new feature and which animation curves are supported?

@hamorphis hamorphis removed the backlog label Jun 15, 2016
@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants