转载

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

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

RazzleDazzle 是IFTTT开源的一个iOS帧动画框架,用Swift编写,非常适用于APP初次使用时的介绍和引导信息。RazzleDazzle由IFTTT此前开源的一款Objective-C滚动帧动画库 JazzHands 发展而来。多款知名应用程序都使用了JazzHands这个框架,目前其在github上有3688个star。开发者除了使用 RazzleDazzle支持的动画类型外,还可以使用自定义动画类型。

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

RazzleDazzle支持的动画类型:

  • AlphaAnimation animates the  alpha property (creates fade effects).

  • BackgroundColorAnimationanimates the  backgroundColor property.

  • RotationAnimationanimates a rotation transform (for rotation effects).

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

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

  • CornerRadiusAnimation animates the  layer.cornerRadius property.

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

  • LayerStrokeStartAnimationanimates the  strokeStart property of a  CAShapeLayer (does not work with LayerStrokeEndAnimation).

  • LayerStrokeEndAnimationanimates the  strokeEnd property of a  CAShapeLayer (does not work with LayerStrokeStartAnimation).

  • LayerFillColorAnimationanimates the  fillColor property of a  CAShapeLayer .

  • LayerStrokeColorAnimationanimates the  strokeColor property of a  CAShapeLayer .

  • PathPositionAnimationanimates the  layer.position property of a  UIView along a path.

  • LabelTextColorAnimationanimates the  textColor property of a  UILabel .

  • ConstraintConstantAnimationanimates an  AutoLayout constraint constant.

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

  • ScrollViewPageConstraintAnimationanimates an  AutoLayout constraint 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 for  AnimatedPagingScrollViewController 's  keepView(view: onPage:)  function.

正文到此结束
Loading...