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
AnimationPlayer.getPosition always returns zero #18891
Comments
I can confirm this behavior, however this is how the method is written as of now: https://github.com/angular/angular/blob/4.3.6/packages/animations/src/players/animation_player.ts#L93 Same goes for the |
👎 Is there a timeline for when this functionality is going to be implemented? -Matt |
Any updates on this? |
i have found a way to hack this
|
It seems that this is not done yet. getPosition(): number { return 0; } We'll have to wait. |
At the very least, the documentation should be updated to note that the method does not work. Nothing's more frustrating than debugging your code only to find that the method is not implemented yet! |
I would love to see this feature implemented. There is pretty big value in being able to get an idea of where we sit in the animation timeline. |
Any update on the issue? It has been 2 years since this bug has been discovered. |
Hi folks, the fix for this issue (#39983) has landed in 11.0.4, thanks to @literalpie. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
AnimationPlayer.getPosition() always returns 0
Expected behavior
getPosition() should return the current 0% of the animation inferred in the API docs
Minimal reproduction of the problem with instructions
Create an Animation programatically such as:
Live example
Environment
The text was updated successfully, but these errors were encountered: