Socket
Socket
Sign inDemoInstall

penner

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

penner

Penner's easing equations, in JavaScript


Version published
Weekly downloads
4.4K
increased by4.37%
Maintainers
1
Weekly downloads
 
Created
Source

penner

A library for Penner's easing equations

what?

See http://upshots.org/actionscript/jsas-understanding-easing

usage

var t = 0,		// current time (ms, s, frames, ...)
	b = 10,		// initial value
	c = 100,	// change in value (final value - initial value)
	d = 2		// duration (same units as t)
	value = penner.easeOutQuad(t, b, c, d);

included easing functions

linear easeInQuad easeOutQuad easeInOutQuad easeInCubic easeOutCubic easeInOutCubic easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInSine easeOutSine easeInOutSine easeInExpo easeOutExpo easeInOutExpo easeInCirc easeOutCirc easeInOutCirc easeInElastic easeOutElastic easeInOutElastic easeInBack easeOutBack easeInOutBack easeInBounce easeOutBounce easeInOutBounce

size

Raw7880 bytes
Uglified3200 bytes
Uglified + gzipped865 bytes

environment support

Any browser (as window.penner), AMD, CommonJS, NodeJS

Keywords

FAQs

Package last updated on 09 Oct 2015

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