IFTTT开源Swift编写的帧动画框架--RazzleDazzle

前端之家收集整理的这篇文章主要介绍了IFTTT开源Swift编写的帧动画框架--RazzleDazzle前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_502_2@

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支持的动画类型外,还可以使用自定义动画类型。
@H_502_2@

@H_502_2@


@H_502_2@

RazzleDazzle支持的动画类型:@H_502_2@

  • AlphaAnimationanimates thealphaproperty (creates fade effects).@H_502_2@

  • BackgroundColorAnimationanimates thebackgroundColorproperty.@H_502_2@

  • RotationAnimationanimates a rotation transform (for rotation effects).@H_502_2@

  • ScaleAnimationapplies a scaling transform (to scale view sizes).@H_502_2@

  • TranslationAnimationapplies a translation transform (to translate view position).@H_502_2@

  • CornerRadiusAnimationanimates thelayer.cornerRadiusproperty.@H_502_2@

  • HideAnimation animates the hidden property (hides and shows views).@H_502_2@

  • LayerStrokeStartAnimationanimates thestrokeStartproperty of aCAShapeLayer(does not work with LayerStrokeEndAnimation).@H_502_2@

  • LayerStrokeEndAnimationanimates thestrokeEndproperty of aCAShapeLayer(does not work with LayerStrokeStartAnimation).@H_502_2@

  • LayerFillColorAnimationanimates thefillColorproperty of aCAShapeLayer.@H_502_2@

  • LayerStrokeColorAnimationanimates thestrokeColorproperty of aCAShapeLayer.@H_502_2@

  • PathPositionAnimationanimates thelayer.positionproperty of aUIViewalong a path.@H_502_2@

  • LabelTextColorAnimationanimates thetextColorproperty of aUILabel.@H_502_2@

  • ConstraintConstantAnimationanimates anAutoLayoutconstraint constant.@H_502_2@

  • ConstraintMultiplierAnimationanimates anAutoLayoutconstraint constant as a multiple of an attribute of another view (to offset or resize views based on another view's size)@H_502_2@

  • 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.@H_502_2@

猜你在找的Swift相关文章