Socket
Book a DemoInstallSign in
Socket

atomic-ease

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomic-ease

Namespace-aware easing functions.

0.1.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

atomic-aese

Namespace-aware easing functions.

Usage

Source code:

import { ease } from "atomic-ease";

const result = ease.In.expo(0.5);

After bundling with Rollup:

const easeInExpo = (x) => (x <= 0 ? 0 : Math.pow(2, 10 * (x - 1)));

const result = easeInExpo(0.5);

Implemented easing types

  • linear
  • quad
  • cubic
  • quart
  • expo
  • back

...to be added more.

Create new easing functions

import { createEase } from "atomic-ease";
  • createEase.from()
  • createEase.concatenate()
  • createEase.integrate()

See type declaration for details.

Not yet very well tested.

Keywords

easing

FAQs

Package last updated on 20 Feb 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.