Events & Callbacks

Trigger functions when typing finishes naturally

Status: Idle
const statusDiv = document.getElementById("status-log");

const typer = new TypeMorph({
  parent: "target",
  speed: 40,
  onFinish: (instance) => {
    statusDiv.textContent = "Status: Completed!";
    statusDiv.style.color = "#4caf50";
  }
});

statusDiv.textContent = "Status: Typing...";
typer.type("Watch the status label below update when I finish.");