fake-smile

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i fake-smile

Weekly Downloads

6

Version

1.0.1

License

GPL-3.0

Last publish

Collaborators

  • muhammaddadu
  • this-place