WKCDancer 1.5.7

WKCDancer 1.5.7

Maintained by yang666.



WKCDancer 1.5.7

  • By
  • WKCLoveYang

WKCDancer

原项目SLCDancer 更换到 WKCDancer. (SLCDancer和WKCDancer都可用,只是后续更新WKCDancer).

Alt text.

Carthage compatible CocoaPods compatible License: MIT

The animation is loaded in a chained manner. The following functions are classified by MARK.

This project will maintain and update for a long time.

  1. MAKE, all based on the animation of the center point.
  2. TAKE, all based on the boundary point. (At this time, the temporary repeat parameter is invalid, to be processed later).
  3. MOVE, relative movement (based on the center point).
  4. ADD, relative movement (based on the boundary).
  5. Universal is for all types of animated styles.
  6. Do not use the then parameter and use multiple animations at the same time, Such as makeWith(20).animate(1).makeHeight(20).animate(1), Will work at the same time.
  7. Transition animation.

Note: If there are no special comments, the parameters apply to all types.

For the specified animation method, you need the first call. For example, makeWidth, etc.

There are simple requirements for the calling sequence, starting with make, take, move, or add, ending with animate (for collectionView or tableView with reloadDataWithDancer), and no other special order in the middle.

Version record

1.3.8 Progress init.

1.4.4 add UICollectionView and UITableView cells animation.

1.5.3 change animation effects.

1.5.6 get layout frame.

中文

链式方式加载动画,以下功能以MARK为分类作划分. 本项目会长期维护更新.

  1. MAKE分类,全部是以中心点为依据的动画.

Alt text.

  1. TAKE分类,全部以边界点为依据.(此时暂时repeat参数是无效的,待后续处理).

Alt text.

  1. MOVE分类,相对移动 (以中心点为依据).

Alt text.

  1. ADD分类,相对移动(以边界为依据).

Alt text.

  1. 通用是适用于所有类型的动画样式.

Alt text.

  1. 不使用then参数,同时使用多个动画如makeWith(20).animate(1).makeHeight(20).animate(1) 会同时作用; 使用then参数时如makeWith(20).animate(1).then.makeHeight(20).animate(1) 会在动画widtha完成后再进行动画height.
  2. TRANSITION 转场动画.

Alt text.

注: 如果没有特殊注释,则表示参数适用于所有类型.

使用.

pod 'WKCDancer'

#import <WKCDancer.h>

  1. 对于调用顺序有简单要求, 以make,take,move或者add等开始,以animate结束(对于collectionView或者tableView是以reloadDataWithDancer结束),其他在中间无特殊顺序要求. 例如:
self.view.moveX(-100).easeLiner.delay(2).reverses(YES).animate(2);

collectionView.makeScale(0.01).itemDuration(2).itemDelay(0.1).spring.reloadDataWithDancer();

UIView和CALayer同样适用.

swift请移步WKCWalker.使用方法完全相同.

版本

1.3.8 初次确定版本.

1.4.4 增加UICollectionView和UITableView动画.

1.5.3 优化动画效果.

1.5.6 处理layout不能获得坐标的问题.