Skip to content

bastienrobert/eaaase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ease

Some ease functions

Developped to be used with really old browsers and with or without module bundler.
Fast & ~1kb gzipped

Example using canvas 2d and easeInCubic function.

Install

npm install eaaase

Usage

import Ease from "eaaase";
// or
const Ease = require("eaaase");

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

Functions

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

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