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

Smoothness of an animation #5655

Closed
PaulDalek opened this Issue Sep 5, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@PaulDalek
Contributor

PaulDalek commented Sep 5, 2016

Behaviour

It seems that series animation enabled directly by animation property is not as smooth as animation by default. At some point animation just pauses and series is rendered immediately.

Live demo with steps to reproduce

http://jsfiddle.net/wefgo2qz/ - animation enabled by default
http://jsfiddle.net/wefgo2qz/1/ - animation enabled using animation property

Workaround

Set animation duration to 1000: http://jsfiddle.net/wefgo2qz/2/

@KacperMadej

This comment has been minimized.

Show comment
Hide comment
@KacperMadej

KacperMadej Sep 5, 2016

Contributor

Internal note:

The animation ends in the middle and jumps to the final state. This is because if the animation option is set to true, then in animate function of Series.prototype default option is used, but only in the scope of that function. Later on in code execution render function of Series.prototype is getting animation duration from the original option (that is set to true) using animObject that returns 500 instead of default animation time which is 1000.

Contributor

KacperMadej commented Sep 5, 2016

Internal note:

The animation ends in the middle and jumps to the final state. This is because if the animation option is set to true, then in animate function of Series.prototype default option is used, but only in the scope of that function. Later on in code execution render function of Series.prototype is getting animation duration from the original option (that is set to true) using animObject that returns 500 instead of default animation time which is 1000.

@PaulDalek PaulDalek changed the title from Smoothness of a animation to Smoothness of an animation Sep 5, 2016

@TorsteinHonsi TorsteinHonsi added the Bug label Sep 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment