eaaase

Some ease functions

Usage no npm install needed!

<script type="module">
  import eaaase from 'https://cdn.skypack.dev/eaaase';
</script>

README

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/