Rendering assets/hippo.svg and assets/zebra.svg through RaphaelJS
Rendering assets/zebra.svg through RaphaelJS and scaling by 0.5
Rendering assets/zebra.svg through RaphaelJS and scaling by 2
HTML
<div class="svg" data-svg="path_to_file.svg">JavaScript
$(document).ready(function(){ $('.svg').vectron(); });Scale SVG
$(document).ready(function(){ $('.svg').vectron({ scale: 1.25 }); });Grab the RaphaelJS paper
var paper = $(...).data('vectron').paper;
This simple jQuery plugin uses ajax to retrieve the SVG, parse with rappar.js and render the results through RaphaelJS.
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/RoomandBoard/vectron
Marc Grabanski