New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eaz

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eaz

↝ Simple and flexible easing package for smooth animations

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

eaz

↝ Simple and flexible easing package for smooth animations

Installation: npm i eaz

npm npmlogo
documentation 📖

Use Predefined Easing Functions

Using predefined easing functions is as simple as referencing a static property of the Easing class.

import { Easing } from 'eaz';

Easing.cubic.in(0.3); // Output: 0.0269

Every Easing object contains an in, out, and inOut method, and more options. Refer to the documentation for theEasing class for more information.

Create Custom Easing Functions

Use eaz's generational methods to create custom easing functions quickly

import { Easing } from 'eaz';

Easing.polynomial(2.5).in(0.3); // Output: 0.0493

Or create entirely custom easing methods from scratch

import { Easing } from 'eaz';

const myEasing = new Easing(t => t ** 2.5);
myEasing.in(0.3); // Output: 0.0493

Easily Generate Demo Images

Generate images to test your easing functions

import { Easing, DemoImage } from '../index';

DemoImage.inOut(Easing.cubic, 'images/cubicInOut.png');

Output: images/cubicInOut.png

Keywords

FAQs

Package last updated on 22 Aug 2020

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc