Animator.prototype.getIndex()
The getIndex() method returns the animation index number.
Syntax
getIndex()
Parameters
none
Return value
A 0-based index number.
Examples
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
const index = animator.getIndex();
// index = 0