你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發基礎 >> IFTTT開源Swift編寫的幀動畫框架

IFTTT開源Swift編寫的幀動畫框架

編輯:IOS開發基礎

razzledazzlebanner.jpg

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支持的動畫類型外,還可以使用自定義動畫類型。

32.gif


RazzleDazzle支持的動畫類型:

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

  • BackgroundColorAnimation animates the backgroundColor property.

  • RotationAnimation animates a rotation transform (for rotation effects).

  • ScaleAnimation applies a scaling transform (to scale view sizes).

  • TranslationAnimation applies a translation transform (to translate view position).

  • CornerRadiusAnimation animates the layer.cornerRadius property.

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

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

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

  • LayerFillColorAnimation animates the fillColor property of a CAShapeLayer.

  • LayerStrokeColorAnimation animates the strokeColor property of a CAShapeLayer.

  • PathPositionAnimation animates the layer.position property of a UIView along a path.

  • LabelTextColorAnimation animates the textColor property of a UILabel.

  • ConstraintConstantAnimation animates an AutoLayout constraint constant.

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

  • ScrollViewPageConstraintAnimation animates 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.

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved