animation - How to decrease the size of the svg used in : animated skills diagram with Raphael -


i implemented following plugin website http://tympanus.net/codrops/2011/04/22/animated-skills-diagram/comment-page-3/#comments

unfortunately set width of svg used 600px x 600px. tried overwrite size smaller 1 of 350 px, did not work. cuts off part of svg. give me advise on how make animation smaller?

thanks in advance, ev chen

you can use viewbox scale svg. set svg container size want causes cropping, , set viewbox 600px x 600px, allowing resizing

http://raphaeljs.com/reference.html#paper.setviewbox

paper.setviewbox(0, 0, 600, 600, true) 

this fit specified region (600 x 600) container.


Comments