Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 3.36 KB

README.md

File metadata and controls

61 lines (53 loc) · 3.36 KB

npm version Coverage Status

@tchesa/ease

A tiny javascript easing package with no dependencies.

Install

npm i @tchesa/ease

Usage

import { easeOutCubic } from '@tchesa/ease'

console.log(easeOutCubic(0.5)); // -> 0.875

Methods

Contribute

To include a new easing function:

  • Create a index.ts inside a new folder for each easing function inside src, e.g. src/newEasingFunction/index.ts;
  • include their export in src/index.ts file.
// ...
export { default as newEasingFunction } from "./newEasingFunction";
  • include some tests and a README.md file with some details.