首页 > web前端 > html教程 > 瞬间崩塌为小方块动画效果演示:StarWars Animation_html/css_WEB-ITnose

瞬间崩塌为小方块动画效果演示:StarWars Animation_html/css_WEB-ITnose

WBOY
发布: 2016-06-24 11:34:50
原创
1347 人浏览过

Yalantis 出品的瞬间崩塌为小方块动画效果演示。

Check this project on dribbble.

Also, read how it was done in our blog

Requirements

  • iOS 8.0+
  • Xcode 7
  • Swift 2

Installing with CocoaPods

use_frameworks!pod 'StarWars', '~> 1.0'
登录后复制

Usage

At first, import StarWars:

import StarWars
登录后复制

Then just implement class of UIViewControllerTransitioningDelegate that will return our animation form method animationControllerForDismissedController and assign it to transitioningDelegate of viewController that you want to dismiss.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {    let destination = segue.destinationViewController    destination.transitioningDelegate = self}func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {    return StarWarsGLAnimator()}
登录后复制

项目主页:http://www.open-open.com/lib/view/home/1445608581867

来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板