Socket
Socket
Sign inDemoInstall

easing-progress

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    easing-progress

Easing Progress


Version published
Maintainers
1
Created

Readme

Source

easing-progress is a JavaScript library of easing functions

Language gzip

  • See Demo
  • See Documentation

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

Keywords

FAQs

Last updated on 11 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc