atomic-ease

Namespace-aware easing functions.

Usage no npm install needed!

<script type="module">
  import atomicEase from 'https://cdn.skypack.dev/atomic-ease';
</script>

README

atomic-aese

Namespace-aware easing functions.

Usage

Source code:

import { ease } from "atomic-ease";

const result = ease.In.expo(0.5);

After bundling with Rollup:

const easeInExpo = (x) => (x <= 0 ? 0 : Math.pow(2, 10 * (x - 1)));

const result = easeInExpo(0.5);

Implemented easing types

  • linear
  • quad
  • cubic
  • quart
  • expo
  • back

...to be added more.

Create new easing functions

import { createEase } from "atomic-ease";
  • createEase.from()
  • createEase.concatenate()
  • createEase.integrate()

See type declaration for details.

Not yet very well tested.