Skip to content

Instantly share code, notes, and snippets.

@jsab
Created November 12, 2011 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsab/1360825 to your computer and use it in GitHub Desktop.
Save jsab/1360825 to your computer and use it in GitHub Desktop.
les gradients
<div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<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="15%"
style="stop-color:rgb(0,255,0);stop-opacity:1" />
<stop offset="85%"
style="stop-color:rgb(0,255,0);stop-opacity:1" />
<stop offset="100%"
style="stop-color:rgb(0,255,0);stop-opacity:1" />
</linearGradient>
</defs>
<rect x="0" y="0" width="120" height="80" fill="url(#grad1)" />
</svg>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment