@j0hnm4r5/easings
v2.0.0
Published
A set of named and generic easing functions for ES2015
Downloads
1
Readme
@j0hnm4r5/easings
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
- Example diagrams here: https://easings.net/
- Based on the conversations here: https://gist.github.com/gre/1650294
Authors
License
MIT © John Mars