Penner
A library for Penner's easing equations.
Install / Use
/learn @bcherny/PennerREADME
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
| | | |-----------------------|---------------| | Raw | 7880 bytes | | Uglified | 3200 bytes | | Uglified + gzipped | 865 bytes |
environment support
Any browser (as window.penner), AMD, CommonJS, NodeJS
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
