fake-smile
v1.0.1
Published
A JavaScript library that allows you to animate web content
Downloads
27
Readme
FakeSmile
A JavaScript library that allows you to animate web content
More nformation can be found at leunen.me/fakesmile
SMIL is a specification defining a set of elements that control animations. This is called declarative animations. FakeSmile is a SMIL implementation written in ECMAScript. What people call a polyfill. It is primarily targeted to SVG animations.
While some browsers already support animations (Opera, Firefox, Safari and Chrome), others don't. While I'm writing this, only MS Internet Explorer is lacking this feature. But they all support programatic animations via scripting. FakeSmile makes declarative animations work in IE too.
Installation
In your project directory, run the following command.
npm install fake-smile --save
Usage
Require the libraries in your project (requires a transpiler such as Webpack).
import "fake-smile/smil.check.js";
import "fake-smile/smil.user.js";
Note: This library will not work on external SVG files. They will have to be part of the template.