Skip to main content

States

IIdle
Processing
FComplete

Transitions

Idle → Processing
Processing → Complete

Style Settings

Theme

Preview

startfinish / notifyUser()IdleProcessingComplete

Export

HTML Output

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>State Machine Diagram</title>
  <style>
.state-machine-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 20px;
}

.state-machine-container svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.state-box {
  fill: #ffffff;
  stroke: #3498db;
  stroke-width: 2;
}

.state-initial {
  stroke: #2ecc71;
}

.state-final {
  stroke: #e74c3c;
}

.state-name {
  fill: #2c3e50;
  font-weight: 500;
}

.transition-line {
  stroke: #34495e;
  stroke-width: 1.5;
  fill: none;
}

.transition-label {
  fill: #2c3e50;
}

.initial-marker {
  fill: #2ecc71;
}

.final-marker {
  fill: none;
  stroke: #e74c3c;
  stroke-width: 3;
}
  </style>
</head>
<body>
  <div class="state-machine-container">
    
  </div>
</body>
</html>