/ease

Ease animation methods written in typescript.

Primary LanguageTypeScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Build Status Coverage Status

@fireflysemantics/ease

Animation easing functions written typescript.

Installation

npm i @fireflysemantics/ease

Usage

TypeScript

import { linearEase } from '@fireflysemantics/ease';
let result:number = linearEase(10,10,100,100);
console.log("The linear ease value is: ", result);

Javascript

let linearEase = require('@fireflysemantics/ease');
let result:number = linearEase(10,10,100,100);
console.log("The linear ease value is: ", result);

Test

npm run test

Typedoc

From the root project directory run typedoc to generate the code documenation

npm i
npm run doc
npm i -g http-server
http-server doc

Now open localhost:8080 and the typedoc can be seen.