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

cubic-bezier-easing

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cubic-bezier-easing

A simple cubic-bezier easing functions factory for KUTE.js, developed with ES6+ and based on UnitBezier

  • 1.0.9
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

CubicBezier

A JavaScript ES6/ES7 cubic-bezier class to create easing functions as used in KUTE.js. The module is based on UnitBezier by Apple, a piece of code found on Codepen.

Install

npm install cubic-bezier-easing

Usage

import CubicBezier from 'cubic-bezier-easing'

let easeCubicInOut = new CubicBezier(0.645, 0.045, 0.355, 1)

let moveItRight = KUTE.to(someTarget,{translateX:150}, {easing: easingCubicInOut})

Note: if you're using KUTE.js, you don't have to install this module, the above is just an example on what it does and how to use it.

By default, new easing functions get a name with the parameters. EG: cubic-bezier(0.645,0.045,0.335,1)

However, you can set your own unique name like so:

let easeCubicInOut = new CubicBezier(0.645, 0.045, 0.355, 1, 'myCubicOut')

You can use CubicBezier in combination with other libraries like D3, Three.js, Tween.js and GSAP of course.

License

MIT License

Keywords

FAQs

Package last updated on 16 Nov 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

  • 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