This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
jeasing with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
JEasing runs both in the browser an on Node.js.
We provide a version without a link to the parent library (without this). Thus, you can include it in your own library.
This README isn't a tutorial on Easing equations. If you need to understand what are the Easing equations, you can refer here.
const JEasing = require('jeasing'); // t: current time, b: beginning value, c: change in value, d: duration const val = JEasing.linear(t, b, c, d);
var val = JEasing.linear(t, b, c, d);
This library implements the following equations:
linear swing easeInSine easeOutSine easeInOutSine easeInQuad easeOutQuad easeInOutQuad easeInCubic easeOutCubic easeInOutCubic easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInExpo easeOutExpo easeInOutExpo easeInCirc easeOutCirc easeInOutCirc easeInBack easeOutBack easeInOutBack easeInElastic easeOutElastic easeInOutElastic easeInBounce easeOutBounce easeInOutBounce