Animator.prototype.getStatus()
The getStatus() methhod returns the execution status of the animation.
Syntax
getStatus()
Parameters
none
Return value
An object with the following properties:
- runnable
- True if the state list is set to Animator.prototype.props or Animator.prototype.arms, false otherwise.
- running
- True if the animation is running, false otherwise.
Examples
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
const status = animator.getStatus();
// status = {
// "runnable": false,
// "running": false,
// }