warrenm/AHEasing 的副本,它消失时破坏了需要它的依赖项的 pods。
AHEasing
为 C、C++ 和 Objective-C 提供的补充缓动函数库
该项目的有用部分由两部分组成
- 一个独立缓动函数库,用 C 实现(easing.h/easing.c)
- CAAnimation 类方法,以便更容易地在您的 Core Animation 项目中使用缓动效果
支持的函数
计划支持以下类型的缓动函数
- 线性
- 二次
- 三次
- 四次
- 五次
- 正弦
- 圆
- 弹性
- 弹跳
- 反弹
每种都有对应的 ease-in,ease-out 和 ease-in-out 变种。核心缓动函数作为 C 函数实现,它接受时间参数并返回进度参数,然后可以用来插值任何数量。
目标
AHEasing 的设计目标为
- 尽可能快,同时保持人类可读性
- 可移植到任何具有 C 运行时的系统
- 阐明常见缓动函数的数学基础
灵感
这份作品是以下这些个人作品的灵魂传承者(不能说其是翻版)
- 罗伯特·彭纳 (http://www.robertpenner.com/easing/)
- 乔治·麦金利·史密斯 (http://gsgd.co.uk/sandbox/jquery/easing/)
- 詹姆斯·帕多尔斯基 (http://james.padolsey.com/demos/jquery/easing/)
- jQuery 作者 (http://plugins.jquery.com/project/Easing)
- 马特·加勒格尔 (http://cocoawithlove.com/2008/09/parametric-acceleration-curves-in-core.html)
- 杰西·克罗斯恩 (http://stackoverflow.com/questions/5161465/how-to-create-custom-easing-function-with-core-animation)