JSFiddle - React, Tailwind, and code Playground

by longsonr

HTML

<svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1100 700">
    <title>basic pattern</title>

    <defs>
        <pattern id="pat" width="20" height="20" patternUnits="userSpaceOnUse" patternContentUnits="objectBoundingBox">
          <ellipse cx="0" cy="0" rx=".2" ry=".2" fill="white"/>
          <ellipse cx=".05" cy=".05" rx=".15" ry=".15" fill="yellow"/>
          <ellipse cx=".10" cy=".10" rx=".10" ry=".10" fill="blue"/>
          <ellipse cx=".15" cy=".15" rx=".05" ry=".05" fill="red"/>
        </pattern>

    </defs>
    <rect x="100" y="350" width="100" height="100" fill="url(#pat)" onclick="this.setAttribute('x', '200')"/>
</svg>