JSFiddle - React, Tailwind, and code Playground

by Johan Muller

HTML

<svg width="300" height="100"> 
     <path id="svg1" d="M 0 0 L 0 100 L 250 100 L 200 50 L 250 0" fill="#442233" />    
</svg>

CSS

#svg1 {
            transition: all 1s 0s;
}

JavaScript

$('#svg1').attr('d','M 0 0 L 0 100 L 250 100 L 300 50 L 250 0');