@jgtools/easings
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

Easings

npm npm GitHub

Collection of easing functions

Installation

Using npm

npm i @jgtools/easings
// import all functions using a namespace
import * as Easings from "@jgtools/easings";
// or import functions individually
import { outElastic } from "@jgtools/easings";
// ...

Using cdn

<script type="module">
    // import all functions using a namespace
    import * as Easings from "https://cdn.jsdelivr.net/npm/@jgtools/easings@2.0.5/dist/index.min.js";
    // or import functions individually
    import { outElastic } from "https://cdn.jsdelivr.net/npm/@jgtools/easings@2.0.5/dist/index.min.js";
    // ...
</script>

Usage

import { outElastic } from "@jgtools/easings";
const res = outElastic(0.5);

Easing functions cheat sheet:

https://easings.net/

License

MIT

Package Sidebar

Install

npm i @jgtools/easings

Weekly Downloads

0

Version

2.0.5

License

MIT

Unpacked Size

4.98 kB

Total Files

5

Last publish

Collaborators

  • jgtools