RazzleDazzle是IFTTT开源的一个iOS帧动画框架,用Swift编写,非常适用于APP初次使用时的介绍和引导信息。RazzleDazzle由IFTTT此前开源的一款Objective-C滚动帧动画库JazzHands发展而来。JazzHands是UIKit一个简单的关键帧基础动画框架,可通过手势、scrollvIEw、KVO或者ReactiveCocoa控制动画,被IFTTT应用在IFTTT for iPhone上。多款知名应用程序都使用了JazzHands这个框架,目前其在github上有3688个star。对于RazzleDazzle,开发者除了使用RazzleDazzle支持的动画类型外,还可以使用自定义动画类型。
RazzleDazzle支持的动画类型:
AlphaAnimationanimates theAlphaproperty (creates fade effects).
BackgroundcolorAnimationanimates thebackgroundcolorproperty.
RotationAnimationanimates a rotation transform (for rotation effects).
ScaleAnimationapplIEs a scaling transform (to scale vIEw sizes).
TranslationAnimationapplIEs a translation transform (to translate vIEw position).
CornerRadiusAnimationanimates thelayer.cornerRadiusproperty.
HIDeAnimation animates the hIDden property (hIDes and shows vIEws).
LayerstrokeStartAnimationanimates thestrokeStartproperty of aCAShapeLayer(does not work with LayerstrokeEndAnimation).
LayerstrokeEndAnimationanimates thestrokeEndproperty of aCAShapeLayer(does not work with LayerstrokeStartAnimation).
LayerFillcolorAnimationanimates thefillcolorproperty of aCAShapeLayer.
LayerstrokecolorAnimationanimates thestrokecolorproperty of aCAShapeLayer.
PathpositionAnimationanimates thelayer.positionproperty of aUIVIEwalong a path.
LabelTextcolorAnimationanimates thetextcolorproperty of aUILabel.
ConstraintConstantAnimationanimates anautoLayoutconstraint constant.
ConstraintMultiplIErAnimationanimates anautoLayoutconstraint constant as a multiple of an attribute of another vIEw (to offset or resize vIEws based on another vIEw's size)
ScrollVIEwPageConstraintAnimationanimates anautoLayoutconstraint constant to place a vIEw on a scroll vIEw page (to position vIEws on a scrollVIEw using autoLayout). This is the animation doing the heavy lifting forAnimatedPagingScrollVIEwController'skeepVIEw(vIEw: onPage:)function.
总结以上是内存溢出为你收集整理的IFTTT开源Swift编写的帧动画框架--RazzleDazzle全部内容,希望文章能够帮你解决IFTTT开源Swift编写的帧动画框架--RazzleDazzle所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)