2.0.0 • Published 5 years ago

@j0hnm4r5/easings v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@j0hnm4r5/easings

XO Prettier

Yet another Easings library for JS (ES2015+).

Getting Started

Installation

yarn add @j0hnm4r5/easings

Usage

Easings always takes a value from 0...1 and returns a number from 0...1 (except for Elastic — those numbers may return outside the range).

import { Easings } from "easings";

Easings.easeInOut(7)(0.5); // generic easing funcions; the first number is the function order

Easings.easeInQuart(0.5); // everything else

Inspirations

Authors

License

MIT © John Mars