package
SVG animation supporting IE10+ and <noscript>.
npm install smil2cssGitHub-flavored package documentation.
Across all versions, last 30 days.
22 in 30 days
Runtime metadata.
Tagged topics.

SVG animation supporting IE10+ and <noscript>.
Unfortunately, Internet Explorer does not support SVG animation (SMIL). Other solutions like FakeSmile use JavaScript to recreate the animation. Not only does this close doors to users with JavaScript disabled, it requires an extra download and performs slower than CSS animations. This utility converts SMIL to CSS and works in any Internet Explorer version that supports CSS' animation (IE10+).
Note: Currently, only frame-by-frame animations are converted. read more
This plugin requires NodeJS ~0.10. There're two ways to use it:
To install, type this at the command line:
npm install smil2css -gAfter that, check out the help for available options:
smil2css -?To install, type this at the command line:
npm install smil2css --save-devAfter that, it can be used as a function for single-use or as a class for multiple conversions.
Upon successful conversion, a String will be returned. If an issue is encountered, false will be returned.
var result = smil2css.convert(svgString, options);
if (result)
{
console.log("success");
}var smil2css = require("smil2css");
var instance = new smil2css(options);
var result1 = instance.convert(svgString1);
var result2 = instance.convert(svgString2, customOptions);
var result3 = instance.convert(svgString3);display,visibilityfrom and to to keyTimes<svg> elements<animatecolor><animatemotion>,<animatetransform>,<mpath>,<set> elementsbegin attribute values among sibling animation elementsrepeatCount attribute values among sibling animation elements