Socket
Socket
Sign inDemoInstall

jeasing

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jeasing

A simple library that implements Robert Penner's easing equations


Version published
Maintainers
1
Install size
66.9 kB
Created

Readme

Source

JEasing

NPM version Travis CI Test coverage Dependencies status Dev Dependencies status License

NPM install

JEasing is no longer maintained. Please, use @mobilabs/easing now.

JEasing is a simple library that implements Robert Penner's easing equations. These equations are encapsulated in the module pattern. JEasing is written in pure Javascript. It has no dependency.

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.

Quick Startup

This README isn't a tutorial on Easing equations. If you need to understand what are the Easing equations, you can refer here.

Node.js

const JEasing = require('jeasing');

// t: current time, b: beginning value, c: change in value, d: duration
const val = JEasing.linear(t, b, c, d);

Browser

var val = JEasing.linear(t, b, c, d);

API

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

License

MIT.

FAQs

Last updated on 27 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc