Gradient on svg section top separator

I am trying to create a gradient on svg from section top separator.

From comments on SO I get that svg tag needs a defs linearGradient tag. Is it possible to add this somehow?

  <defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
  <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
  <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>

Hello There,

Yes, it is possible using jquery but that would be outside the scope of our support because the customization needed.
1.) Add an ID on to your section
2.) Target the svg separator using the given ID on section and then use prepend function to add that on current svg element.

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.