Loop Count & Final Behavior

Execute the loop a specific number of times and stop

const typer = new TypeMorph({
  parent: "target",
  speed: 40,
  backspaceSpeed: 40,
  loopCount: 1,
  loopType: "backspace",
  loopFinalBehavior: "remove",
});

await typer.loop("I will backspace");
await typer.loop("I will stay when I finish!", {
  loopFinalBehavior: "keep",
});