Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design how to separate svg defs from the tags?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #267422
    wizardnet972
    Participant

    In my codepen example I have two svgs.

    I want to move all the defs into separate svg tag like so:

    <svg>
     <defs>
      <pattern id="a" ......... />
      <pattern id="b" ......... />
     </defs>
    </svg>
    

    and in the tags to do:

    <svg>
     <path fill="url(#a)" d="M................................. />
    </svg>
    
    <svg>
     <path fill="url(#b)" d="M................................. />
    </svg>
    

    The problem is the image is not fill right.

    So how to do that?

    https://codepen.io/shlomilevi/pen/OQpoEY

Viewing 1 post (of 1 total)
  • The forum ‘Design’ is closed to new topics and replies.