svg {
  display: block;
  background: white;
  border: 1px solid silver;
}

.line {
  stroke: #123;
  stroke-width: 4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  path-length: 1;
  /* при path-length: 1 удобно анимировать «прорисовку» 1 → 0 по dashoffset */
}