eaaase
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Eaaase

NPM

Some ease functions

How to use

You can download the index.js and add it to your project, or:

npm install eaaase

then

import Ease from 'eaaase'
// or
const Ease = require('eaaase')

Ease.linear(currentTime, from, to, duration)

Example

Example using canvas 2d and easeInCubic function.

Functions

  • linear : no easing, no acceleration
  • quadratic
  • cubic
  • quartic
  • quintic
  • sine
  • expo
  • circular
  • back
  • bounce
  • elastic

Inspired from http://gizma.com/easing/

Readme

Keywords

Package Sidebar

Install

npm i eaaase

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

43.4 kB

Total Files

18

Last publish

Collaborators

  • bastienrobert