See the Pen classic-stroke-example-speed by soritesparadox (@soritesparadox) on CodePen.