
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
cubic-bezier-easing
Advanced tools
A simple cubic-bezier easing functions factory for KUTE.js, developed with ES6+ and based on UnitBezier
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.
npm install cubic-bezier-easing
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.
MIT License
FAQs
A simple cubic-bezier easing functions factory for KUTE.js, developed with ES6+ and based on UnitBezier
We found that cubic-bezier-easing 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.