61

GitHub - WeiKunChao/SLCWalker: The animation is loaded in a chained manner. The...

 5 years ago
source link: https://github.com/WeiKunChao/SLCWalker
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

SLCWalker

Carthage compatible CocoaPods compatible License: MIT

链式方式加载动画,以下功能以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 'SLCWalker'
 
  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同样适用.

OC和Demo请移步SLCDancer.使用方法完全相同.

版本

1.0.5 初次确定版本. 1.0.6 增加UICollectionView和UITableView动画.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK