Skip to content

Instantly share code, notes, and snippets.

@gpsarkar
Created June 18, 2018 05:32
Show Gist options
  • Save gpsarkar/3d06c26322db217c3aa0d5800ee428d4 to your computer and use it in GitHub Desktop.
Save gpsarkar/3d06c26322db217c3aa0d5800ee428d4 to your computer and use it in GitHub Desktop.
svg
Linear gradient on line
<svg xmlns="http://www.w3.org/2000/svg" version="1"> <defs> <linearGradient id="e" x1="40" y1="235" x2="40" y2="265" gradientUnits="userSpaceOnUse"> <stop stop-color="steelblue" offset="0" /> <stop stop-color="red" offset="1" /> </linearGradient> </defs> <line x1="40" y1="210" x2="460" y2="290" stroke="url(#e)" stroke-width="30"/> </svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment