A jQuery-Plugin for SVG encoding into Base64
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
jquery.basesvg.js

README.md

jQuery.baseSVG

A jQuery-Plugin for SVG encoding into Base64.

Please be aware that this is work in progress. Please file 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
});