Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drublic/jquery.basesvg
A jQuery-Plugin for SVG encoding into Base64
https://github.com/drublic/jquery.basesvg
Last synced: 6 days ago
JSON representation
A jQuery-Plugin for SVG encoding into Base64
- Host: GitHub
- URL: https://github.com/drublic/jquery.basesvg
- Owner: drublic
- Created: 2012-05-20T11:24:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-21T20:47:51.000Z (over 12 years ago)
- Last Synced: 2024-10-24T18:50:22.033Z (19 days ago)
- Language: JavaScript
- Size: 98.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jQuery.baseSVG
==============A jQuery-Plugin for SVG encoding into Base64.
Please be aware that this is __work in progress__. Please [file issues](https://github.com/drublic/jQuery.baseSVG/issues) if you find bugs or want another feature in it.
Produces a vertical gradient from color `from` to `to` as hex-code with the height of `height` in pixels. Colors can be empty which means the color-stop will be transparent.
Defaults are: `height: 400`, `from: #bada55`, `to: `.
The gradient is translated into a Base64 encoded string and applied as a background-image to a `element`.
## Usagage
$(element).basesvg({
from: '#bada55',
to: '#fa51a7',
height: 1000
});