JSPM

easing-progress

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 379
  • Score
    100M100P100Q127298F
  • License MIT

Easing Progress

Package Exports

  • easing-progress
  • easing-progress/lib/cjs/index.js
  • easing-progress/lib/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easing-progress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

easing-progress is a JavaScript library of easing functions

Language gzip

Dev Config

  • node v20.2.0
  • npm v9.6.6

How to start with NPM

npm install easing-progress

Example

import { easing, EaseOutCubic, EaseInOutCirc } from 'easing-progress';

const myProgress1 = easing(0.75, EaseOutCubic); // => 0.984375
const myProgress2 = easing(0.32, EaseInOutCirc); // => 0.11581254575402905
const myProgress3 = easing(0.32, [0.52, -0.41, 0, 1.43]); // => 0.5075000000000001
const myProgress4 = easing(0.32, (x) => {
  return Math.sin(x * Math.PI / 2);
}); // => 0.4817536741017153