Socket
Socket
Sign inDemoInstall

eases-jsnext

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eases-jsnext

grab bag of easing equations


Version published
Weekly downloads
1.4K
increased by1.09%
Maintainers
1
Install size
33.3 kB
Created
Weekly downloads
 

Readme

Source

eases-jsnext

This is a fork of mattdesl/eases. It includes tree-shaking-friendly ES6 modules, and a UMD build for use in browser.

It preserves the original individual CommonJS files, and therefore serves as a drop-in replacement.


eases

stable

This is a grab-bag of Robert Penner's easing equations, most of the code from glsl-easings. Pull requests for optimizations are welcome.

//require all eases
import * as eases from 'eases-jsnext';

//require only the single function
import { quadIn } from 'eases-jsnext';

Usage

NPM

Full list of eases:

import {
  backInOut,
  backIn,
  backOut,
  bounceInOut,
  bounceIn,
  bounceOut,
  circInOut,
  circIn,
  circOut,
  cubicInOut,
  cubicIn,
  cubicOut,
  elasticInOut,
  elasticIn,
  elasticOut,
  expoInOut,
  expoIn,
  expoOut,
  linear,
  quadInOut,
  quadIn,
  quadOut,
  quartInOut,
  quartIn,
  quartOut,
  quintInOut,
  quintIn,
  quintOut,
  sineInOut,
  sineIn,
  sineOut
} from 'eases-jsnext';

All easing functions only remap a time value, and all have the same signature.

v = ease(t)

Where t is typically a value between 0 and 1, and it returns a new float that has been eased.

License

MIT, see LICENSE.md for details.

Keywords

FAQs

Last updated on 23 Sep 2017

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