Yet another take on Robert Penner's easing functions.
Load via script tag:
<!-- Just an IIFE namespaced `ease` -->
<script src="https://thewhodidthis.github.io/ease/ease.js"></script>
Source from an import map:
{
"imports": {
"@thewhodidthis/ease": "https://thewhodidthis.github.io/ease/main.js"
}
}
Download from GitHub directly if using a package manager:
# Add to package.json
npm install @thewhodidthis/ease
To get a print out of all exports:
import * as ease from "@thewhodidthis/ease"
Object.keys(ease).forEach((k) => {
console.log(k)
})