Offline SVG animation (with ecmascript (and jQuery ?!))

I created SVG using inkscape and now I want to add some animation according to some logic.

I know JavaScript well and have basic experience with jQuery. So I thought I could animate SVG with jQuery.

Google finds countless tutorials on how to work with embedded SVG embedded in XHTML, but I have standalone SVG and Firefox complains

Error: b.style undefined

Source file: [...] jquery.js

Line: 16

Is there a way to get jQuery to work? Or, as an alternative, can you recommend another JavaScript library that I could use that matches the purpose?

+3
source share
2 answers

Raphaël. API jQuery, .

, IE SVG, SVG- . Raphaël - VML IE SVG . Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ Internet Explorer 6.0 +.

SVG, Inkscape, Raphaël. . JSConf 2010.

+2

. SVG

http://irunmywebsite.com/raphael/svgsource.php

SVG html4, , android. .

- Raphael/SVG/VML

+1

Source: https://habr.com/ru/post/1793260/


All Articles