pennerts
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

pennerts

A collection of penner functions based on https://github.com/bcherny/penner but using modules and TypeScript.

Usage

import * as penner from 'penner';

const position = penner.linear(time, start, change, duration);

Also there is type declared called IPennerFunction you can use to reserve a variable to hold a function which will be assigned at a later time.

let pennerFunction: penner.IPennerFunction;
...
pennerFunction = penner.linear;
const position = pennerFunction(time, start, change, duration);

Package Sidebar

Install

npm i pennerts

Weekly Downloads

115

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mattmazzola