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

bezier-easing

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bezier-easing

BezierEasing provides Cubic Bezier Curve easing which generalizes easing functions exactly like in CSS Transitions.

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
313K
decreased by-22.53%
Maintainers
1
Weekly downloads
 
Created

What is bezier-easing?

The bezier-easing npm package provides a way to create cubic Bezier easing functions, which are commonly used in animations to create smooth transitions. This package allows you to define custom easing curves and use them to interpolate values over time.

What are bezier-easing's main functionalities?

Create a Bezier Easing Function

This feature allows you to create a cubic Bezier easing function by specifying four control points. The resulting function can be used to interpolate values smoothly.

const BezierEasing = require('bezier-easing');
const ease = BezierEasing(0.25, 0.1, 0.25, 1.0);

Use the Easing Function

Once you have created a Bezier easing function, you can use it to interpolate values. The function takes a progress value between 0 and 1 and returns the interpolated value.

const BezierEasing = require('bezier-easing');
const ease = BezierEasing(0.25, 0.1, 0.25, 1.0);
const value = ease(0.5); // Interpolates the value at 50% progress

Predefined Easing Functions

The package also provides some predefined easing functions like easeInOut, which can be used directly without specifying control points.

const BezierEasing = require('bezier-easing');
const easeInOut = BezierEasing.easeInOut;
const value = easeInOut(0.5); // Interpolates the value at 50% progress using a predefined ease-in-out curve

Other packages similar to bezier-easing

Keywords

FAQs

Package last updated on 06 Jun 2018

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