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

Suggestion: Animation speed should be proportional to moved distance #177

Open
X455u opened this issue Oct 16, 2014 · 1 comment
Open

Suggestion: Animation speed should be proportional to moved distance #177

X455u opened this issue Oct 16, 2014 · 1 comment

Comments

@X455u
Copy link
Contributor

X455u commented Oct 16, 2014

Animations where elements move from one place to another have the same duration as any other animation in JSAV. Therefore, when two elements that are beside each other are swapped, they move very slowly. Similarly, when two elements on each end of an array are swapped, they move very fast.

It would be nice if the average moving speed of these animations were equal instead of their durations.

@vkaravir
Copy link
Owner

Yes, it would be nice. But implementing this gets easily complicated. It would be somewhat simple to adjust the duration of the moves to be relative to the distance. However, where it gets complicated is timing the effects with other effects in the animation. If one move takes long, I think other effects (such as highlights, color changes, etc) should take equally long in that step. Or what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants