Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
eases-jsnext
Advanced tools
Readme
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.
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';
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.
MIT, see LICENSE.md for details.
FAQs
grab bag of easing equations
The npm package eases-jsnext receives a total of 1,115 weekly downloads. As such, eases-jsnext popularity was classified as popular.
We found that eases-jsnext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.