Package Exports
- @creenv/easings
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@creenv/easings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Creenv easings
A list of easings functions. This package is standalone and doesn't need the creative environment to work.
1. Installation
npm install --save @creenv/easings
2. Usage
import EASINGS from "@creenv/easings";
let x = 0.4;
let xEased = EASINGS.linear(x);
3. Easings list
Name | Description |
---|---|
linear | t => t |
quadIn | t => t*t |
quadOut | t => t*(2-t) |
quadInOut | t => (t<0.5) ? 2tt : -1+(4-2*t)*t |
cubicIn | t => ttt |
cubicOut | t => (--t)tt+1 |
cubicInOut | t => t<.5 ? 4ttt : (t-1)(2t-2)(2*t-2)+1 |
quartIn | t => ttt*t |
quartOut | t => 1-(--t)tt*t |
quartInOut | t => t<.5 ? 8tttt : 1-8*(--t)tt*t |
quintIn | t => ttttt |
quintOut | t => 1+(--t)tttt |
quintInOut | t => t<.5 ? 16ttttt : 1+16(--t)tttt |