Syntax
setIndex(index)
Parameters
- index
- A number greater than or equal to 0. If you specify a value less than 0 or a non-numeric value, the index number will be 0.
Return value
none
Examples
const core = new jmotion.Core("#board");
const animator = new jmotion.Animator(core);
const before = animator.getIndex();
animator.setIndex(10);
const after = animator.getIndex();
// before = 0
// after = 10