@tchesa/ease
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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";

Easing functions' implementation from See https://easings.net/.

Package Sidebar

Install

npm i @tchesa/ease

Weekly Downloads

1

Version

0.0.6

License

ISC

Unpacked Size

425 kB

Total Files

264

Last publish

Collaborators

  • tchesa